RichTextField constructor

const RichTextField({
  1. Key? key,
  2. required RichTextEditorController controller,
  3. FocusNode? focusNode,
  4. InputDecoration? decoration = const InputDecoration(),
  5. TextInputType? keyboardType,
  6. TextInputAction? textInputAction,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextStyle? style,
  9. StrutStyle? strutStyle,
  10. TextAlign textAlign = TextAlign.start,
  11. TextAlignVertical? textAlignVertical,
  12. TextDirection? textDirection,
  13. bool readOnly = false,
  14. bool? showCursor,
  15. bool autofocus = false,
  16. String obscuringCharacter = '•',
  17. bool obscureText = false,
  18. bool autocorrect = true,
  19. SmartDashesType? smartDashesType,
  20. SmartQuotesType? smartQuotesType,
  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. Color? cursorColor,
  37. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  38. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  39. Brightness? keyboardAppearance,
  40. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  41. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  42. bool? enableInteractiveSelection,
  43. TextSelectionControls? selectionControls,
  44. GestureTapCallback? onTap,
  45. TapRegionCallback? onTapOutside,
  46. MouseCursor? mouseCursor,
  47. InputCounterWidgetBuilder? buildCounter,
  48. ScrollController? scrollController,
  49. ScrollPhysics? scrollPhysics,
  50. Iterable<String>? autofillHints = const <String>[],
  51. Clip clipBehavior = Clip.hardEdge,
  52. String? restorationId,
  53. bool scribbleEnabled = true,
  54. bool enableIMEPersonalizedLearning = true,
  55. EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
  56. SpellCheckConfiguration? spellCheckConfiguration,
  57. TextMagnifierConfiguration? magnifierConfiguration,
})

Implementation

const RichTextField({
  super.key,
  required this.controller,
  super.focusNode,
  super.decoration = const InputDecoration(),
  TextInputType? keyboardType,
  super.textInputAction,
  super.textCapitalization = TextCapitalization.none,
  super.style,
  super.strutStyle,
  super.textAlign = TextAlign.start,
  super.textAlignVertical,
  super.textDirection,
  super.readOnly = false,
  super.showCursor,
  super.autofocus = false,
  super.obscuringCharacter = '•',
  super.obscureText = false,
  super.autocorrect = true,
  SmartDashesType? smartDashesType,
  SmartQuotesType? 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.cursorColor,
  super.selectionHeightStyle = BoxHeightStyle.tight,
  super.selectionWidthStyle = BoxWidthStyle.tight,
  super.keyboardAppearance,
  super.scrollPadding = const EdgeInsets.all(20.0),
  super.dragStartBehavior = DragStartBehavior.start,
  bool? enableInteractiveSelection,
  super.selectionControls,
  super.onTap,
  super.onTapOutside,
  super.mouseCursor,
  super.buildCounter,
  super.scrollController,
  super.scrollPhysics,
  super.autofillHints = const <String>[],
  super.clipBehavior = Clip.hardEdge,
  super.restorationId,
  super.scribbleEnabled = true,
  super.enableIMEPersonalizedLearning = true,
  super.contextMenuBuilder,
  super.spellCheckConfiguration,
  super.magnifierConfiguration,
});