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. String? validator(
    1. String? value
    )?,
  8. List<TextInputFormatter>? inputFormatter,
  9. TextAlign textAlign = TextAlign.start,
  10. int? maxLength,
  11. void onSaved(
    1. String?
    )?,
  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 filled = false,
  24. Color? fillColor,
  25. bool required = true,
  26. Iterable<String>? autofillHints,
  27. TextStyle? style,
  28. InputDecoration? decoration,
  29. EdgeInsets padding = const EdgeInsets.all(8),
  30. String? hintText,
  31. EdgeInsets? contentPadding,
  32. String? counterText = '',
  33. Widget? prefix,
  34. Widget? prefixIcon,
  35. Widget? suffix,
  36. Widget? suffixIcon,
  37. void onTap()?,
  38. int? sizeExtraSmall,
  39. int? sizeSmall,
  40. int? sizeMedium,
  41. int? sizeLarge,
  42. int? sizeExtraLarge,
  43. double? minHeight,
  44. Key? key,
})

Implementation

EmailField({
  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.filled,
  super.fillColor,
  super.required,
  super.autofillHints,
  super.style,
  super.decoration,
  super.padding,
  super.hintText,
  super.contentPadding,
  super.counterText,
  super.prefix,
  super.prefixIcon,
  super.suffix,
  super.suffixIcon,
  super.onTap,
  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,
      );