PhoneNumberInput constructor

const PhoneNumberInput({
  1. Key? key,
  2. PhoneNumberInputController? controller,
  3. void onChanged(
    1. String
    )?,
  4. String? initialValue,
  5. String? initialCountry,
  6. List<String>? excludedCountries,
  7. bool allowPickFromContacts = true,
  8. Widget? pickContactIcon,
  9. List<String>? includedCountries,
  10. String? hint,
  11. bool showSelectedFlag = true,
  12. InputBorder? border,
  13. String locale = 'en',
  14. String? searchHint,
  15. bool allowSearch = true,
  16. CountryListMode countryListMode = CountryListMode.bottomSheet,
  17. InputBorder? enabledBorder,
  18. InputBorder? focusedBorder,
  19. ContactsPickerPosition contactsPickerPosition = ContactsPickerPosition.suffix,
  20. 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);