EmailField constructor

EmailField({
  1. EmailValidator? emailValidator,
  2. String validatorMessage = 'Informe o e-mail.',
  3. String? labelPrefix,
  4. String? label,
  5. Widget? labelWidget,
  6. TextEditingController? controller,
  7. FormFieldValidator<String>? validator,
  8. List<TextInputFormatter>? inputFormatter,
  9. TextAlign textAlign = TextAlign.start,
  10. int? maxLength,
  11. FormFieldSetter<String>? onSaved,
  12. String? initialValue,
  13. bool enabled = true,
  14. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  15. ValueChanged<String?>? onChanged,
  16. FocusNode? focusNode,
  17. TextInputAction? textInputAction,
  18. ValueChanged<String?>? onFieldSubmitted,
  19. bool autocorrect = false,
  20. bool enableSuggestions = true,
  21. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  22. bool enableInteractiveSelection = true,
  23. bool required = true,
  24. TextStyle? style,
  25. InputDecoration? decoration,
  26. EdgeInsets padding = const EdgeInsets.all(8),
  27. String? hintText,
  28. EdgeInsets? contentPadding,
  29. String? counterText = '',
  30. Widget? prefix,
  31. Widget? prefixIcon,
  32. Widget? suffix,
  33. Widget? suffixIcon,
  34. VoidCallback? onTap,
  35. Iterable<String>? autofillHints,
  36. int? sizeExtraSmall,
  37. int? sizeSmall,
  38. int? sizeMedium,
  39. int? sizeLarge,
  40. int? sizeExtraLarge,
  41. double? minHeight,
  42. Key? key,
})

Implementation

EmailField({
  final EmailValidator? emailValidator,
  super.validatorMessage = 'Informe o e-mail.',
  super.labelPrefix,
  super.label,
  super.labelWidget,
  super.controller,
  super.validator,
  super.inputFormatter,
  super.textAlign,
  super.maxLength,
  super.onSaved,
  super.initialValue,
  super.enabled,
  super.autoValidateMode,
  super.onChanged,
  super.focusNode,
  super.textInputAction,
  super.onFieldSubmitted,
  super.autocorrect,
  super.enableSuggestions = true,
  super.scrollPadding,
  super.enableInteractiveSelection,
  super.required,
  super.style,
  super.decoration,
  super.padding,
  super.hintText,
  super.contentPadding,
  super.counterText,
  super.prefix,
  super.prefixIcon,
  super.suffix,
  super.suffixIcon,
  super.onTap,
  super.autofillHints,
  super.sizeExtraSmall,
  super.sizeSmall,
  super.sizeMedium,
  super.sizeLarge,
  super.sizeExtraLarge,
  super.minHeight,
  super.key,
}) : assert(
       initialValue == null || controller == null,
       'initialValue or controller must be null.',
     ),
     assert(
       label == null || labelWidget == null,
       'label or labelWidget must be null.',
     ),
     super(
       abstractValidator: emailValidator ?? EmailValidator(),
       textCapitalization: TextCapitalization.none,
     );