WorldPickerPhoneNumberField constructor
WorldPickerPhoneNumberField({
- Key? key,
- TextEditingController? controller,
- required dynamic onPhoneNumberChanged(),
- PhoneNumber? initialValue,
- WorldPickerOptions options = const WorldPickerOptions(),
- bool showDialCode = false,
- String defaultCountryIsoCode = 'US',
- double? size = 32.0,
- InputDecoration decoration = const InputDecoration(),
- TextInputType keyboardType = TextInputType.phone,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = false,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- Widget contextMenuBuilder()?,
- bool? showCursor,
- dynamic onEditingComplete()?,
- dynamic onSubmitted()?,
- AppPrivateCommandCallback? onAppPrivateCommand,
- dynamic onTapOutside()?,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- MouseCursor? mouseCursor,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- Iterable<
String> ? autofillHints, - bool enableIMEPersonalizedLearning = true,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
WorldPickerPhoneNumberField({
super.key,
this.controller,
required this.onPhoneNumberChanged,
this.initialValue,
this.options = const WorldPickerOptions(),
this.showDialCode = false,
this.defaultCountryIsoCode = 'US',
this.size = 32.0,
this.decoration = const InputDecoration(),
this.keyboardType = TextInputType.phone,
this.textInputAction,
this.style,
this.strutStyle,
this.textAlignVertical,
this.autofocus = false,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = false,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions = true,
this.contextMenuBuilder,
this.showCursor,
this.onEditingComplete,
this.onSubmitted,
this.onAppPrivateCommand,
this.onTapOutside,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.enableInteractiveSelection = true,
this.selectionControls,
this.mouseCursor,
this.scrollPhysics,
this.scrollController,
this.autofillHints,
this.enableIMEPersonalizedLearning = true,
this.inputFormatters,
}) {
assert(
controller == null || initialValue == null,
'Cannot provide both controller and initialValue.',
);
}