EmailField constructor
const
EmailField({
- Key? key,
- TextEditingController? controller,
- String label = 'Email',
- String? hint = 'name@example.com',
- String? validator()?,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool enabled = true,
- AutovalidateMode? autovalidateMode,
- String? initialValue,
- IconData? icon,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSaved, - 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,
});