AFieldEmail constructor
const
AFieldEmail({
- Key? key,
- bool readOnly = false,
- bool clearable = false,
- bool required = false,
- String? initialValue,
- void onChanged()?,
- bool showIcon = true,
- String identifier = 'email',
- String? label = "Email",
- int? flexible,
- bool expanded = false,
- EdgeInsets? margin,
- bool autofocus = false,
- Widget? bottom,
- bool capitalize = false,
- List<
ARule< ? customRules,String> > - double height = 46,
- String? hintText,
- bool linkToAForm = true,
- VoidCallback? onSubmit,
- void onUnfocus()?,
- EdgeInsets? padding,
- bool readonly = false,
- Widget? suffix,
Implementation
const AFieldEmail({
super.key,
super.readOnly,
super.clearable,
super.required,
super.initialValue,
super.onChanged,
bool showIcon = true,
super.identifier = 'email',
super.label = "Email",
super.flexible,
super.expanded,
super.margin,
super.autofocus,
super.bottom,
super.capitalize,
super.customRules,
super.height,
super.hintText,
super.linkToAForm,
super.onSubmit,
super.onUnfocus,
super.padding,
super.readonly,
super.suffix,
}) : super(
denySpaces: true,
icon: showIcon ? Icons.email : null,
keyboardType: TextInputType.emailAddress,
autofillHints: const <String>[AutofillHints.email],
);