RawEditor constructor

const RawEditor({
  1. required QuillController controller,
  2. required FocusNode focusNode,
  3. required ScrollController scrollController,
  4. required double scrollBottomInset,
  5. required CursorStyle cursorStyle,
  6. required Color selectionColor,
  7. required TextSelectionControls selectionCtrls,
  8. required EmbedsBuilder embedBuilder,
  9. Key? key,
  10. bool scrollable = true,
  11. EdgeInsetsGeometry padding = EdgeInsets.zero,
  12. bool readOnly = false,
  13. String? placeholder,
  14. ValueChanged<String>? onLaunchUrl,
  15. QuillEditorContextMenuBuilder? contextMenuBuilder = defaultContextMenuBuilder,
  16. bool showSelectionHandles = false,
  17. bool? showCursor,
  18. TextCapitalization textCapitalization = TextCapitalization.none,
  19. double? maxHeight,
  20. double? minHeight,
  21. double? maxContentWidth,
  22. DefaultStyles? customStyles,
  23. Map<LogicalKeySet, Intent>? customShortcuts,
  24. Map<Type, Action<Intent>>? customActions,
  25. bool expands = false,
  26. bool autoFocus = false,
  27. bool enableUnfocusOnTapOutside = true,
  28. Brightness keyboardAppearance = Brightness.light,
  29. bool enableInteractiveSelection = true,
  30. ScrollPhysics? scrollPhysics,
  31. LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
  32. CustomStyleBuilder? customStyleBuilder,
  33. bool floatingCursorDisabled = false,
  34. Future<String?> onImagePaste(
    1. Uint8List imageBytes
    )?,
  35. 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);