WorldPickerPhoneNumberField constructor

WorldPickerPhoneNumberField({
  1. Key? key,
  2. TextEditingController? controller,
  3. required dynamic onPhoneNumberChanged(
    1. PhoneNumber
    ),
  4. PhoneNumber? initialValue,
  5. WorldPickerOptions options = const WorldPickerOptions(),
  6. bool showDialCode = false,
  7. String defaultCountryIsoCode = 'US',
  8. double? size = 32.0,
  9. InputDecoration decoration = const InputDecoration(),
  10. TextInputType keyboardType = TextInputType.phone,
  11. TextInputAction? textInputAction,
  12. TextStyle? style,
  13. StrutStyle? strutStyle,
  14. TextAlignVertical? textAlignVertical,
  15. bool autofocus = false,
  16. String obscuringCharacter = '•',
  17. bool obscureText = false,
  18. bool autocorrect = false,
  19. SmartDashesType? smartDashesType,
  20. SmartQuotesType? smartQuotesType,
  21. bool enableSuggestions = true,
  22. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  23. bool? showCursor,
  24. dynamic onEditingComplete()?,
  25. dynamic onSubmitted(
    1. PhoneNumber
    )?,
  26. AppPrivateCommandCallback? onAppPrivateCommand,
  27. dynamic onTapOutside(
    1. PointerDownEvent
    )?,
  28. double cursorWidth = 2.0,
  29. double? cursorHeight,
  30. Radius? cursorRadius,
  31. Color? cursorColor,
  32. Brightness? keyboardAppearance,
  33. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  34. bool enableInteractiveSelection = true,
  35. TextSelectionControls? selectionControls,
  36. MouseCursor? mouseCursor,
  37. ScrollPhysics? scrollPhysics,
  38. ScrollController? scrollController,
  39. Iterable<String>? autofillHints,
  40. bool enableIMEPersonalizedLearning = true,
  41. 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.',
  );
}