AFieldEmail constructor

const AFieldEmail({
  1. Key? key,
  2. bool readOnly = false,
  3. bool clearable = false,
  4. bool required = false,
  5. String? initialValue,
  6. void onChanged(
    1. String?
    )?,
  7. bool showIcon = true,
  8. String identifier = 'email',
  9. String? label = "Email",
  10. int? flexible,
  11. bool expanded = false,
  12. EdgeInsets? margin,
  13. bool autofocus = false,
  14. Widget? bottom,
  15. bool capitalize = false,
  16. List<ARule<String>>? customRules,
  17. double height = 46,
  18. String? hintText,
  19. bool linkToAForm = true,
  20. VoidCallback? onSubmit,
  21. void onUnfocus()?,
  22. EdgeInsets? padding,
  23. bool readonly = false,
  24. 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],
      );