ReadyPhoneInput constructor

const ReadyPhoneInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. required dynamic onCountryChange(
    1. Country
    ),
  4. String? validator(
    1. String?
    )?,
  5. String? initialDialCode,
  6. String? hintText,
  7. String? labelText,
  8. TextInputAction textInputAction = TextInputAction.done,
  9. bool autoFocus = false,
  10. bool isReadOnly = false,
  11. ValueChanged<String>? onChanged,
  12. ValueChanged<String>? onFieldSubmitted,
  13. Widget? buildCounter(
    1. BuildContext, {
    2. int currentLength,
    3. bool isFocused,
    4. int? maxLength,
    })?,
  14. AutovalidateMode? autovalidateMode,
  15. List<TextInputFormatter>? inputFormatters,
  16. CursorStyleData? cursorStyle,
  17. InputDecorationType decorationType = InputDecorationType.outlined,
  18. bool enableInteractiveSelection = true,
  19. bool enableSuggestions = true,
  20. bool enabled = true,
  21. bool? expands,
  22. FocusNode? focusNode,
  23. bool? isObscure,
  24. VoidCallback? onEditingComplete,
  25. VoidCallback? onTap,
  26. EdgeInsets? scrollPadding,
  27. bool? showLabelInside,
  28. TextStyle? style,
  29. Widget? suffixIcon,
  30. TextAlign? textAlign,
  31. TextAlignVertical? textAlignVertical,
  32. TextCapitalization? textCapitalization,
  33. BorderRadius? borderRadius,
  34. List<Country>? countries,
})

Implementation

const ReadyPhoneInput({
  super.key,
  this.controller,
  required this.onCountryChange,
  this.validator,
  this.initialDialCode,
  this.hintText,
  this.labelText,
  this.textInputAction = TextInputAction.done,
  this.autoFocus = false,
  this.isReadOnly = false,
  this.onChanged,
  this.onFieldSubmitted,
  this.buildCounter,
  this.autovalidateMode,
  this.inputFormatters,
  this.cursorStyle,
  this.decorationType = InputDecorationType.outlined,
  this.enableInteractiveSelection = true,
  this.enableSuggestions = true,
  this.enabled = true,
  this.expands,
  this.focusNode,
  this.isObscure,
  this.onEditingComplete,
  this.onTap,
  this.scrollPadding,
  this.showLabelInside,
  this.style,
  this.suffixIcon,
  this.textAlign,
  this.textAlignVertical,
  this.textCapitalization,
  this.borderRadius,
  this.countries,
});