InternationalPhoneNumberInput constructor

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

Implementation

InternationalPhoneNumberInput(
    {Key? key,
    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.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.selectorTextStyle,
    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})
    : super(key: key);