IntlPhoneField constructor

IntlPhoneField({
  1. String? initialCountryCode,
  2. bool obscureText = false,
  3. TextAlign textAlign = TextAlign.left,
  4. TextAlignVertical? textAlignVertical,
  5. VoidCallback? onTap,
  6. bool readOnly = false,
  7. String? initialValue,
  8. TextInputType keyboardType = TextInputType.phone,
  9. bool autovalidate = true,
  10. TextEditingController? controller,
  11. FocusNode? focusNode,
  12. InputDecoration decoration = const InputDecoration(),
  13. TextStyle? style,
  14. TextStyle? dropdownTextStyle,
  15. void onSubmitted(
    1. String
    )?,
  16. FutureOr<String?> validator(
    1. String?
    )?,
  17. ValueChanged<PhoneNumber>? onChanged,
  18. List<String>? countries,
  19. ValueChanged<PhoneNumber>? onCountryChanged,
  20. FormFieldSetter<PhoneNumber>? onSaved,
  21. bool showDropdownIcon = true,
  22. BoxDecoration dropdownDecoration = const BoxDecoration(),
  23. List<TextInputFormatter>? inputFormatters,
  24. bool enabled = true,
  25. Brightness keyboardAppearance = Brightness.light,
  26. String searchText = 'Search by Country Name',
  27. IconPosition iconPosition = IconPosition.leading,
  28. Icon dropDownIcon = const Icon(Icons.arrow_drop_down),
  29. bool autofocus = false,
  30. TextInputAction? textInputAction,
  31. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  32. bool showCountryFlag = true,
  33. bool dialCodeSearch = true,
  34. Color? cursorColor,
  35. bool disableLengthCheck = false,
  36. EdgeInsetsGeometry flagsButtonPadding = const EdgeInsets.symmetric(vertical: 8),
  37. String? invalidNumberMessage,
})

Implementation

IntlPhoneField({
  this.initialCountryCode,
  this.obscureText = false,
  this.textAlign = TextAlign.left,
  this.textAlignVertical,
  this.onTap,
  this.readOnly = false,
  this.initialValue,
  this.keyboardType = TextInputType.phone,
  this.autovalidate = true,
  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 = Brightness.light,
  this.searchText = 'Search by Country Name',
  this.iconPosition = IconPosition.leading,
  this.dropDownIcon = const Icon(Icons.arrow_drop_down),
  this.autofocus = false,
  this.textInputAction,
  this.autovalidateMode = AutovalidateMode.onUserInteraction,
  this.showCountryFlag = true,
  this.dialCodeSearch = true,
  this.cursorColor,
  this.disableLengthCheck = false,
  this.flagsButtonPadding = const EdgeInsets.symmetric(vertical: 8),
  this.invalidNumberMessage,
});