CustomEmailInputText constructor

const CustomEmailInputText({
  1. Key? key,
  2. TextEditingController? controller,
  3. bool readOnly = false,
  4. String? hint = "Enter email",
  5. bool? filled,
  6. Color? fillColor,
  7. FocusNode? focusNode,
  8. Color? borderColor = null,
  9. Widget? prefixIcon,
  10. dynamic onChanged(
    1. String
    )?,
  11. FormFieldValidator<String>? validator,
})

Implementation

const CustomEmailInputText({
  super.key,
  super.controller,
  super.readOnly,
  String? hint = "Enter email",
  bool? filled,
  Color? fillColor,
  super.focusNode,
  super.borderColor = null,
  Widget? prefixIcon, // ✅ new optional param
  super.onChanged,
  super.validator,
}) : super(
  hintText: hint,
  keyBoardType: TextInputType.emailAddress,
  prefixWidget: prefixIcon ?? const Icon(Icons.email_outlined),
  filled: filled,
  fillColor: fillColor,
);