ExtendedTextField constructor

const ExtendedTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. UndoHistoryController? undoController,
  5. InputDecoration? decoration = const InputDecoration(),
  6. TextInputType? keyboardType,
  7. TextInputAction? textInputAction,
  8. TextCapitalization textCapitalization = TextCapitalization.none,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextAlign textAlign = TextAlign.start,
  12. TextAlignVertical? textAlignVertical,
  13. TextDirection? textDirection,
  14. bool readOnly = false,
  15. @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions,
  16. bool? showCursor,
  17. bool autofocus = false,
  18. MaterialStatesController? statesController,
  19. String obscuringCharacter = '•',
  20. bool obscureText = false,
  21. bool autocorrect = true,
  22. SmartDashesType? smartDashesType,
  23. SmartQuotesType? smartQuotesType,
  24. bool enableSuggestions = true,
  25. int? maxLines = 1,
  26. int? minLines,
  27. bool expands = false,
  28. int? maxLength,
  29. MaxLengthEnforcement? maxLengthEnforcement,
  30. ValueChanged<String>? onChanged,
  31. VoidCallback? onEditingComplete,
  32. ValueChanged<String>? onSubmitted,
  33. AppPrivateCommandCallback? onAppPrivateCommand,
  34. List<TextInputFormatter>? inputFormatters,
  35. bool? enabled,
  36. double cursorWidth = 2.0,
  37. double? cursorHeight,
  38. Radius? cursorRadius,
  39. bool? cursorOpacityAnimates,
  40. Color? cursorColor,
  41. Color? cursorErrorColor,
  42. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  43. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  44. Brightness? keyboardAppearance,
  45. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  46. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  47. bool? enableInteractiveSelection,
  48. TextSelectionControls? selectionControls,
  49. GestureTapCallback? onTap,
  50. bool onTapAlwaysCalled = false,
  51. TapRegionCallback? onTapOutside,
  52. MouseCursor? mouseCursor,
  53. InputCounterWidgetBuilder? buildCounter,
  54. ScrollController? scrollController,
  55. ScrollPhysics? scrollPhysics,
  56. Iterable<String>? autofillHints = const <String>[],
  57. ContentInsertionConfiguration? contentInsertionConfiguration,
  58. Clip clipBehavior = Clip.hardEdge,
  59. String? restorationId,
  60. bool scribbleEnabled = true,
  61. bool enableIMEPersonalizedLearning = true,
  62. ExtendedEditableTextContextMenuBuilder? extendedContextMenuBuilder = _defaultContextMenuBuilder,
  63. bool canRequestFocus = true,
  64. ExtendedSpellCheckConfiguration? extendedSpellCheckConfiguration,
  65. SpecialTextSpanBuilder? specialTextSpanBuilder,
  66. TextMagnifierConfiguration? magnifierConfiguration,
})

Implementation

const ExtendedTextField({
  super.key,
  super.controller,
  super.focusNode,
  super.undoController,
  super.decoration = const InputDecoration(),
  super.keyboardType,
  super.textInputAction,
  super.textCapitalization = TextCapitalization.none,
  super.style,
  super.strutStyle,
  super.textAlign = TextAlign.start,
  super.textAlignVertical,
  super.textDirection,
  super.readOnly = false,
  @Deprecated(
    'Use `contextMenuBuilder` instead. '
    'This feature was deprecated after v3.3.0-0.5.pre.',
  )
  super.toolbarOptions,
  super.showCursor,
  super.autofocus = false,
  super.statesController,
  super.obscuringCharacter = '•',
  super.obscureText = false,
  super.autocorrect = true,
  super.smartDashesType,
  super.smartQuotesType,
  super.enableSuggestions = true,
  super.maxLines = 1,
  super.minLines,
  super.expands = false,
  super.maxLength,
  super.maxLengthEnforcement,
  super.onChanged,
  super.onEditingComplete,
  super.onSubmitted,
  super.onAppPrivateCommand,
  super.inputFormatters,
  super.enabled,
  super.cursorWidth = 2.0,
  super.cursorHeight,
  super.cursorRadius,
  super.cursorOpacityAnimates,
  super.cursorColor,
  super.cursorErrorColor,
  super.selectionHeightStyle = ui.BoxHeightStyle.tight,
  super.selectionWidthStyle = ui.BoxWidthStyle.tight,
  super.keyboardAppearance,
  super.scrollPadding = const EdgeInsets.all(20.0),
  super.dragStartBehavior = DragStartBehavior.start,
  super.enableInteractiveSelection,
  super.selectionControls,
  super.onTap,
  super.onTapAlwaysCalled = false,
  super.onTapOutside,
  super.mouseCursor,
  super.buildCounter,
  super.scrollController,
  super.scrollPhysics,
  super.autofillHints = const <String>[],
  super.contentInsertionConfiguration,
  super.clipBehavior = Clip.hardEdge,
  super.restorationId,
  super.scribbleEnabled = true,
  super.enableIMEPersonalizedLearning = true,
  // zmtzwqlp
  // super.contextMenuBuilder = _defaultContextMenuBuilder,
  this.extendedContextMenuBuilder = _defaultContextMenuBuilder,
  super.canRequestFocus = true,
  // zmtzawqlp
  // super.spellCheckConfiguration,
  this.extendedSpellCheckConfiguration,
  this.specialTextSpanBuilder,
  super.magnifierConfiguration,
});