IntlPhoneField constructor
const
IntlPhoneField({
- Key? key,
- String? initialCountryCode,
- bool obscureText = false,
- TextAlign textAlign = TextAlign.left,
- VoidCallback? onTap,
- bool readOnly = false,
- String? initialValue,
- TextInputType keyboardType = TextInputType.number,
- bool autoValidate = true,
- TextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration? decoration,
- TextStyle? style,
- void onSubmitted()?,
- FormFieldValidator<
String> ? validator, - ValueChanged<
MobileNumberInfo> ? onChanged, - FormFieldSetter<
MobileNumberInfo> ? onSaved, - bool showDropdownIcon = true,
- BoxDecoration dropdownDecoration = const BoxDecoration(),
- List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- Brightness keyboardAppearance = Brightness.light,
- String searchText = 'Search by Country Name',
- Color? countryCodeTextColor,
- Color? dropDownArrowColor,
Implementation
const IntlPhoneField({
super.key,
this.initialCountryCode,
this.obscureText = false,
this.textAlign = TextAlign.left,
this.onTap,
this.readOnly = false,
this.initialValue,
this.keyboardType = TextInputType.number,
this.autoValidate = true,
this.controller,
this.focusNode,
this.decoration,
this.style,
this.onSubmitted,
this.validator,
this.onChanged,
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.countryCodeTextColor,
this.dropDownArrowColor,
});