EmailField constructor

const EmailField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String label = 'Email',
  4. String? hint = 'name@example.com',
  5. String? validator(
    1. String?
    )?,
  6. ValueChanged<String>? onChanged,
  7. ValueChanged<String>? onSubmitted,
  8. bool enabled = true,
  9. AutovalidateMode? autovalidateMode,
  10. String? initialValue,
  11. IconData? icon,
  12. TextInputAction? textInputAction,
  13. ValueChanged<String?>? onFieldSaved,
  14. bool required = false,
})

Implementation

const EmailField({
  super.key,
  this.controller,
  this.label = 'Email',
  this.hint = 'name@example.com',
  this.validator,
  this.onChanged,
  this.onSubmitted,
  this.enabled = true,
  this.autovalidateMode,
  this.initialValue,
  this.icon,
  this.textInputAction,
  this.onFieldSaved,
  this.required = false,
});