RichTextFormField constructor

RichTextFormField({
  1. required RichTextEditorController controller,
  2. String? initialValue,
  3. AutovalidateMode? autovalidateMode,
  4. FocusNode? focusNode,
  5. InputDecoration? decoration = const InputDecoration(),
  6. TextInputType? keyboardType,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextInputAction? textInputAction,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextDirection? textDirection,
  12. TextAlign textAlign = TextAlign.start,
  13. TextAlignVertical? textAlignVertical,
  14. bool autofocus = false,
  15. bool readOnly = false,
  16. bool? showCursor,
  17. String obscuringCharacter = '•',
  18. bool obscureText = false,
  19. bool autocorrect = true,
  20. SmartDashesType? smartDashesType,
  21. SmartQuotesType? smartQuotesType,
  22. bool enableSuggestions = true,
  23. MaxLengthEnforcement? maxLengthEnforcement,
  24. int? maxLines = 1,
  25. int? minLines,
  26. bool expands = false,
  27. int? maxLength,
  28. ValueChanged<String>? onChanged,
  29. GestureTapCallback? onTap,
  30. TapRegionCallback? onTapOutside,
  31. VoidCallback? onEditingComplete,
  32. ValueChanged<String>? onFieldSubmitted,
  33. List<TextInputFormatter>? inputFormatters,
  34. bool? enabled,
  35. double cursorWidth = 2.0,
  36. double? cursorHeight,
  37. Radius? cursorRadius,
  38. Color? cursorColor,
  39. Brightness? keyboardAppearance,
  40. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  41. bool? enableInteractiveSelection,
  42. TextSelectionControls? selectionControls,
  43. InputCounterWidgetBuilder? buildCounter,
  44. ScrollPhysics? scrollPhysics,
  45. Iterable<String>? autofillHints,
  46. ScrollController? scrollController,
  47. bool enableIMEPersonalizedLearning = true,
  48. MouseCursor? mouseCursor,
  49. EditableTextContextMenuBuilder? contextMenuBuilder,
  50. Key? key,
  51. FormFieldSetter<String>? onSaved,
  52. FormFieldValidator<String>? validator,
})

Implementation

RichTextFormField({
  required this.controller,
  super.initialValue,
  super.autovalidateMode,
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onTapOutside,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.inputFormatters,
  super.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.scrollController,
  this.enableIMEPersonalizedLearning = true,
  this.mouseCursor,
  this.contextMenuBuilder,
  super.key,
  super.onSaved,
  super.validator,
});