PhoneNumberInput constructor
const
PhoneNumberInput({
- Key? key,
- PhoneNumberInputController? controller,
- void onChanged()?,
- String? initialValue,
- String? initialCountry,
- List<
String> ? excludedCountries, - bool allowPickFromContacts = true,
- Widget? pickContactIcon,
- List<
String> ? includedCountries, - String? hint,
- bool showSelectedFlag = true,
- InputBorder? border,
- String locale = 'en',
- String? searchHint,
- bool allowSearch = true,
- CountryListMode countryListMode = CountryListMode.bottomSheet,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- ContactsPickerPosition contactsPickerPosition = ContactsPickerPosition.suffix,
- String? errorText,
Implementation
const PhoneNumberInput({
Key? key,
this.controller,
this.onChanged,
this.initialValue,
this.initialCountry,
this.excludedCountries,
this.allowPickFromContacts = true,
this.pickContactIcon,
this.includedCountries,
this.hint,
this.showSelectedFlag = true,
this.border,
this.locale = 'en',
this.searchHint,
this.allowSearch = true,
this.countryListMode = CountryListMode.bottomSheet,
this.enabledBorder,
this.focusedBorder,
this.contactsPickerPosition = ContactsPickerPosition.suffix,
this.errorText,
}) : super(key: key);