ReadyPhoneInput constructor
const
ReadyPhoneInput({
- Key? key,
- TextEditingController? controller,
- required dynamic onCountryChange(),
- String? validator()?,
- String? initialDialCode,
- String? hintText,
- String? labelText,
- TextInputAction textInputAction = TextInputAction.done,
- bool autoFocus = false,
- bool isReadOnly = false,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onFieldSubmitted, - Widget? buildCounter(
- BuildContext, {
- int currentLength,
- bool isFocused,
- int? maxLength,
- AutovalidateMode? autovalidateMode,
- List<
TextInputFormatter> ? inputFormatters, - CursorStyleData? cursorStyle,
- InputDecorationType decorationType = InputDecorationType.outlined,
- bool enableInteractiveSelection = true,
- bool enableSuggestions = true,
- bool enabled = true,
- bool? expands,
- FocusNode? focusNode,
- bool? isObscure,
- VoidCallback? onEditingComplete,
- VoidCallback? onTap,
- EdgeInsets? scrollPadding,
- bool? showLabelInside,
- TextStyle? style,
- Widget? suffixIcon,
- TextAlign? textAlign,
- TextAlignVertical? textAlignVertical,
- TextCapitalization? textCapitalization,
- BorderRadius? borderRadius,
- 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,
});