NsIntlPhoneInput constructor

const NsIntlPhoneInput({
  1. Key? key,
  2. required dynamic onPhoneChange(
    1. CountrySelection
    ),
  3. required IntlTextEditingController textEditingController,
  4. FocusNode? focusNode,
  5. double phoneInputFontSize = 16,
  6. InputDecoration? phoneFieldDecoration,
  7. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  8. String validationErrorText = 'Please enter a valid phone number',
  9. CountrySelectOption countrySelectOption = const CountrySelectOption(),
  10. CountrySelectionTypeEnum countrySelectionType = CountrySelectionTypeEnum.dialog,
  11. 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);