NsIntlPhoneInput constructor
const
NsIntlPhoneInput({
- Key? key,
- required dynamic onPhoneChange(),
- required IntlTextEditingController textEditingController,
- FocusNode? focusNode,
- double phoneInputFontSize = 16,
- InputDecoration? phoneFieldDecoration,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- String validationErrorText = 'Please enter a valid phone number',
- CountrySelectOption countrySelectOption = const CountrySelectOption(),
- CountrySelectionTypeEnum countrySelectionType = CountrySelectionTypeEnum.dialog,
- bool enableValidation = true,
Implementation
const NsIntlPhoneInput({
Key? key,
required this.onPhoneChange,
required this.textEditingController,
this.focusNode,
this.phoneInputFontSize = 16,
this.phoneFieldDecoration,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.validationErrorText = 'Please enter a valid phone number',
this.countrySelectOption = const CountrySelectOption(),
this.countrySelectionType = CountrySelectionTypeEnum.dialog,
this.enableValidation = true,
}) : super(key: key);