InternationalPhoneNumberInput constructor

const InternationalPhoneNumberInput({
  1. Key? key,
  2. Widget builderTextField(
    1. Widget child
    )?,
  3. Widget builderButtonSelector(
    1. Widget child
    )?,
  4. SelectorConfig selectorConfig = const SelectorConfig(),
  5. required ValueChanged<PhoneNumber>? onInputChanged,
  6. ValueChanged<bool>? onInputValidated,
  7. VoidCallback? onSubmit,
  8. ValueChanged<String>? onFieldSubmitted,
  9. String? validator(
    1. String?
    )?,
  10. ValueChanged<PhoneNumber>? onSaved,
  11. Key? fieldKey,
  12. TextEditingController? textFieldController,
  13. TextInputAction? keyboardAction,
  14. TextInputType keyboardType = TextInputType.phone,
  15. PhoneNumber? initialValue,
  16. String? initialContryCode,
  17. String? hintText = 'Phone number',
  18. String? errorMessage = 'Invalid phone number',
  19. double selectorButtonOnErrorPadding = 24,
  20. double spaceBetweenSelectorAndTextField = 12,
  21. int maxLength = 15,
  22. bool isEnabled = true,
  23. bool formatInput = true,
  24. bool autoFocus = false,
  25. bool autoFocusSearch = false,
  26. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  27. bool ignoreBlank = false,
  28. bool countrySelectorScrollControlled = true,
  29. String? locale,
  30. TextStyle? textStyle,
  31. InputBorder? inputBorder,
  32. InputDecoration? inputDecoration,
  33. InputDecoration? searchBoxDecoration,
  34. TextAlign textAlign = TextAlign.start,
  35. TextAlignVertical textAlignVertical = TextAlignVertical.center,
  36. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  37. FocusNode? focusNode,
  38. Color? cursorColor,
  39. Iterable<String>? autofillHints,
  40. List<String>? countries,
})

Implementation

const InternationalPhoneNumberInput({
  super.key,
  this.builderTextField,
  this.builderButtonSelector,
  this.selectorConfig = const SelectorConfig(),
  required this.onInputChanged,
  this.onInputValidated,
  this.onSubmit,
  this.onFieldSubmitted,
  this.validator,
  this.onSaved,
  this.fieldKey,
  this.textFieldController,
  this.keyboardAction,
  this.keyboardType = TextInputType.phone,
  this.initialValue,
  this.initialContryCode,
  this.hintText = 'Phone number',
  this.errorMessage = 'Invalid phone number',
  this.selectorButtonOnErrorPadding = 24,
  this.spaceBetweenSelectorAndTextField = 12,
  this.maxLength = 15,
  this.isEnabled = true,
  this.formatInput = true,
  this.autoFocus = false,
  this.autoFocusSearch = false,
  this.autoValidateMode = AutovalidateMode.disabled,
  this.ignoreBlank = false,
  this.countrySelectorScrollControlled = true,
  this.locale,
  this.textStyle,
  this.inputBorder,
  this.inputDecoration,
  this.searchBoxDecoration,
  this.textAlign = TextAlign.start,
  this.textAlignVertical = TextAlignVertical.center,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.focusNode,
  this.cursorColor,
  this.autofillHints,
  this.countries,
});