IntlPhoneField constructor

const IntlPhoneField({
  1. Key? key,
  2. String? initialCountryCode,
  3. String languageCode = 'en',
  4. bool disableAutoFillHints = false,
  5. bool obscureText = false,
  6. TextAlign textAlign = TextAlign.left,
  7. TextAlignVertical? textAlignVertical,
  8. VoidCallback? onTap,
  9. bool readOnly = false,
  10. String? initialValue,
  11. TextInputType keyboardType = TextInputType.phone,
  12. TextEditingController? controller,
  13. FocusNode? focusNode,
  14. InputDecoration decoration = const InputDecoration(),
  15. TextStyle? style,
  16. TextStyle? dropdownTextStyle,
  17. void onSubmitted(
    1. String
    )?,
  18. FutureOr<String?> validator(
    1. PhoneNumber?
    )?,
  19. ValueChanged<PhoneNumber>? onChanged,
  20. List<Country>? countries,
  21. ValueChanged<Country>? onCountryChanged,
  22. FormFieldSetter<PhoneNumber>? onSaved,
  23. bool showDropdownIcon = true,
  24. BoxDecoration dropdownDecoration = const BoxDecoration(),
  25. List<TextInputFormatter>? inputFormatters,
  26. bool enabled = true,
  27. Brightness? keyboardAppearance,
  28. @Deprecated('Use searchFieldInputDecoration of PickerDialogStyle instead') String searchText = 'Search country',
  29. IconPosition dropdownIconPosition = IconPosition.leading,
  30. Icon dropdownIcon = const Icon(Icons.arrow_drop_down),
  31. bool autofocus = false,
  32. TextInputAction? textInputAction,
  33. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  34. bool showCountryFlag = true,
  35. Color? cursorColor,
  36. bool disableLengthCheck = false,
  37. EdgeInsetsGeometry flagsButtonPadding = EdgeInsets.zero,
  38. String? invalidNumberMessage = 'Invalid Mobile Number',
  39. double? cursorHeight,
  40. Radius? cursorRadius = Radius.zero,
  41. double cursorWidth = 2.0,
  42. bool? showCursor = true,
  43. PickerDialogStyle? pickerDialogStyle,
  44. EdgeInsets flagsButtonMargin = EdgeInsets.zero,
})

Implementation

const IntlPhoneField({
  Key? key,
  this.initialCountryCode,
  this.languageCode = 'en',
  this.disableAutoFillHints = false,
  this.obscureText = false,
  this.textAlign = TextAlign.left,
  this.textAlignVertical,
  this.onTap,
  this.readOnly = false,
  this.initialValue,
  this.keyboardType = TextInputType.phone,
  this.controller,
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.style,
  this.dropdownTextStyle,
  this.onSubmitted,
  this.validator,
  this.onChanged,
  this.countries,
  this.onCountryChanged,
  this.onSaved,
  this.showDropdownIcon = true,
  this.dropdownDecoration = const BoxDecoration(),
  this.inputFormatters,
  this.enabled = true,
  this.keyboardAppearance,
  @Deprecated('Use searchFieldInputDecoration of PickerDialogStyle instead') this.searchText = 'Search country',
  this.dropdownIconPosition = IconPosition.leading,
  this.dropdownIcon = const Icon(Icons.arrow_drop_down),
  this.autofocus = false,
  this.textInputAction,
  this.autovalidateMode = AutovalidateMode.onUserInteraction,
  this.showCountryFlag = true,
  this.cursorColor,
  this.disableLengthCheck = false,
  this.flagsButtonPadding = EdgeInsets.zero,
  this.invalidNumberMessage = 'Invalid Mobile Number',
  this.cursorHeight,
  this.cursorRadius = Radius.zero,
  this.cursorWidth = 2.0,
  this.showCursor = true,
  this.pickerDialogStyle,
  this.flagsButtonMargin = EdgeInsets.zero,
}) : super(key: key);