MobilePhoneField constructor

MobilePhoneField({
  1. MobilePhoneValidator? mobilePhoneValidator,
  2. String validatorMessage = 'Informe o celular.',
  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. void onSaved(
    1. String?
    )?,
  11. String? initialValue,
  12. bool enabled = true,
  13. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  14. ValueChanged<String?>? onChanged,
  15. FocusNode? focusNode,
  16. TextInputAction? textInputAction,
  17. ValueChanged<String?>? onFieldSubmitted,
  18. bool autocorrect = false,
  19. bool enableSuggestions = true,
  20. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  21. bool enableInteractiveSelection = true,
  22. bool required = true,
  23. TextStyle? style,
  24. InputDecoration? decoration,
  25. EdgeInsets padding = const EdgeInsets.all(8),
  26. String? hintText,
  27. EdgeInsets? contentPadding,
  28. String? counterText = '',
  29. Widget? prefix,
  30. Widget? prefixIcon,
  31. Widget? suffix,
  32. Widget? suffixIcon,
  33. void onTap()?,
  34. int? sizeExtraSmall,
  35. int? sizeSmall,
  36. int? sizeMedium,
  37. int? sizeLarge,
  38. int? sizeExtraLarge,
  39. double? minHeight,
  40. Key? key,
})

Implementation

MobilePhoneField({
  final MobilePhoneValidator? mobilePhoneValidator,
  super.validatorMessage = 'Informe o celular.',
  super.labelPrefix,
  super.label,
  super.labelWidget,
  super.controller,
  super.validator,
  super.inputFormatter,
  super.textAlign,
  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.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: mobilePhoneValidator ?? MobilePhoneValidator(),
       maxLength: 15,
       textCapitalization: TextCapitalization.none,
     );