RawEditor constructor

const RawEditor(
  1. Key key,
  2. QuillController controller,
  3. FocusNode focusNode,
  4. ScrollController scrollController,
  5. bool scrollable,
  6. double scrollBottomInset,
  7. EdgeInsetsGeometry padding,
  8. bool readOnly,
  9. String? placeholder,
  10. ValueChanged<String>? onLaunchUrl,
  11. ToolbarOptions toolbarOptions,
  12. bool showSelectionHandles,
  13. bool? showCursor,
  14. CursorStyle cursorStyle,
  15. TextCapitalization textCapitalization,
  16. double? maxHeight,
  17. double? minHeight,
  18. DefaultStyles? customStyles,
  19. bool expands,
  20. bool autoFocus,
  21. Color selectionColor,
  22. TextSelectionControls selectionCtrls,
  23. Brightness keyboardAppearance,
  24. bool enableInteractiveSelection,
  25. ScrollPhysics? scrollPhysics,
  26. EmbedBuilder embedBuilder,
  27. CustomStyleBuilder? customStyleBuilder,
)

Implementation

const RawEditor(
  Key key,
  this.controller,
  this.focusNode,
  this.scrollController,
  this.scrollable,
  this.scrollBottomInset,
  this.padding,
  this.readOnly,
  this.placeholder,
  this.onLaunchUrl,
  this.toolbarOptions,
  this.showSelectionHandles,
  bool? showCursor,
  this.cursorStyle,
  this.textCapitalization,
  this.maxHeight,
  this.minHeight,
  this.customStyles,
  this.expands,
  this.autoFocus,
  this.selectionColor,
  this.selectionCtrls,
  this.keyboardAppearance,
  this.enableInteractiveSelection,
  this.scrollPhysics,
  this.embedBuilder,
  this.customStyleBuilder,
)   : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'),
      assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'),
      assert(maxHeight == null || minHeight == null || maxHeight >= minHeight,
          'maxHeight cannot be null'),
      showCursor = showCursor ?? true,
      super(key: key);