RawEditor constructor
const
RawEditor({
- required QuillController controller,
- required FocusNode focusNode,
- required ScrollController scrollController,
- required double scrollBottomInset,
- required CursorStyle cursorStyle,
- required Color selectionColor,
- required TextSelectionControls selectionCtrls,
- required EmbedsBuilder embedBuilder,
- Key? key,
- bool scrollable = true,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool readOnly = false,
- String? placeholder,
- ValueChanged<
String> ? onLaunchUrl, - QuillEditorContextMenuBuilder? contextMenuBuilder = defaultContextMenuBuilder,
- bool showSelectionHandles = false,
- bool? showCursor,
- TextCapitalization textCapitalization = TextCapitalization.none,
- double? maxHeight,
- double? minHeight,
- double? maxContentWidth,
- DefaultStyles? customStyles,
- Map<
LogicalKeySet, Intent> ? customShortcuts, - Map<
Type, Action< ? customActions,Intent> > - bool expands = false,
- bool autoFocus = false,
- bool enableUnfocusOnTapOutside = true,
- Brightness keyboardAppearance = Brightness.light,
- bool enableInteractiveSelection = true,
- ScrollPhysics? scrollPhysics,
- LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
- CustomStyleBuilder? customStyleBuilder,
- bool floatingCursorDisabled = false,
- Future<
String?> onImagePaste(- Uint8List imageBytes
- List<
String> customLinkPrefixes = const <String>[],
Implementation
const RawEditor(
{required this.controller,
required this.focusNode,
required this.scrollController,
required this.scrollBottomInset,
required this.cursorStyle,
required this.selectionColor,
required this.selectionCtrls,
required this.embedBuilder,
Key? key,
this.scrollable = true,
this.padding = EdgeInsets.zero,
this.readOnly = false,
this.placeholder,
this.onLaunchUrl,
this.contextMenuBuilder = defaultContextMenuBuilder,
this.showSelectionHandles = false,
bool? showCursor,
this.textCapitalization = TextCapitalization.none,
this.maxHeight,
this.minHeight,
this.maxContentWidth,
this.customStyles,
this.customShortcuts,
this.customActions,
this.expands = false,
this.autoFocus = false,
this.enableUnfocusOnTapOutside = true,
this.keyboardAppearance = Brightness.light,
this.enableInteractiveSelection = true,
this.scrollPhysics,
this.linkActionPickerDelegate = defaultLinkActionPickerDelegate,
this.customStyleBuilder,
this.floatingCursorDisabled = false,
this.onImagePaste,
this.customLinkPrefixes = const <String>[]})
: 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);