RawEditor constructor
const
RawEditor(
- Key key,
- QuillController controller,
- FocusNode focusNode,
- ScrollController scrollController,
- bool scrollable,
- double scrollBottomInset,
- EdgeInsetsGeometry padding,
- bool readOnly,
- String? placeholder,
- ValueChanged<
String> ? onLaunchUrl, - ToolbarOptions toolbarOptions,
- bool showSelectionHandles,
- bool? showCursor,
- CursorStyle cursorStyle,
- TextCapitalization textCapitalization,
- double? maxHeight,
- double? minHeight,
- DefaultStyles? customStyles,
- bool expands,
- bool autoFocus,
- Color selectionColor,
- TextSelectionControls selectionCtrls,
- Brightness keyboardAppearance,
- bool enableInteractiveSelection,
- ScrollPhysics? scrollPhysics,
- EmbedBuilder embedBuilder,
- 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);