TextEditProperty constructor

const TextEditProperty({
  1. Key? key,
  2. required String name,
  3. TextEditingController? controller,
  4. FocusNode? focusNode,
  5. UndoHistoryController? undoController,
  6. InputDecoration? decoration = const InputDecoration(),
  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. String obscuringCharacter = '•',
  19. bool obscureText = false,
  20. bool autocorrect = true,
  21. bool enableSuggestions = true,
  22. int? maxLines = 1,
  23. int? minLines,
  24. bool expands = false,
  25. int? maxLength,
  26. MaxLengthEnforcement? maxLengthEnforcement,
  27. ValueChanged<String>? onChanged,
  28. VoidCallback? onEditingComplete,
  29. ValueChanged<String>? onSubmitted,
  30. AppPrivateCommandCallback? onAppPrivateCommand,
  31. List<TextInputFormatter>? inputFormatters,
  32. bool? enabled,
  33. double cursorWidth = 2.0,
  34. double? cursorHeight,
  35. Radius? cursorRadius,
  36. bool? cursorOpacityAnimates,
  37. Color? cursorColor,
  38. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  39. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  40. Brightness? keyboardAppearance,
  41. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  42. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  43. bool? enableInteractiveSelection,
  44. TextSelectionControls? selectionControls,
  45. GestureTapCallback? onTap,
  46. TapRegionCallback? onTapOutside,
  47. MouseCursor? mouseCursor,
  48. InputCounterWidgetBuilder? buildCounter,
  49. ScrollController? scrollController,
  50. ScrollPhysics? scrollPhysics,
  51. Iterable<String>? autofillHints = const <String>[],
  52. ContentInsertionConfiguration? contentInsertionConfiguration,
  53. Clip clipBehavior = Clip.hardEdge,
  54. String? restorationId,
  55. bool scribbleEnabled = true,
  56. bool enableIMEPersonalizedLearning = true,
  57. bool canRequestFocus = true,
  58. SpellCheckConfiguration? spellCheckConfiguration,
  59. TextMagnifierConfiguration? magnifierConfiguration,
  60. TextInputType? keyboardType,
  61. SmartDashesType? smartDashesType,
  62. SmartQuotesType? smartQuotesType,
})

Implementation

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