QuillEditorConfig constructor

const QuillEditorConfig({
  1. bool scrollable = true,
  2. EdgeInsetsGeometry padding = EdgeInsets.zero,
  3. @experimental List<CharacterShortcutEvent> characterShortcutEvents = const [],
  4. @experimental List<SpaceShortcutEvent> spaceShortcutEvents = const [],
  5. bool autoFocus = false,
  6. bool expands = false,
  7. String? placeholder,
  8. bool? checkBoxReadOnly,
  9. bool disableClipboard = false,
  10. TextSelectionThemeData? textSelectionThemeData,
  11. bool? showCursor,
  12. bool? paintCursorAboveText,
  13. bool enableInteractiveSelection = true,
  14. bool enableSelectionToolbar = true,
  15. double scrollBottomInset = 0,
  16. double? minHeight,
  17. double? maxHeight,
  18. double? maxContentWidth,
  19. DefaultStyles? customStyles,
  20. TextCapitalization textCapitalization = TextCapitalization.sentences,
  21. Brightness? keyboardAppearance,
  22. ScrollPhysics? scrollPhysics,
  23. ValueChanged<String>? onLaunchUrl,
  24. bool onTapDown(
    1. TapDownDetails details,
    2. TextPosition (
      1. Offset offset
      )
    )?,
  25. bool onTapUp(
    1. TapUpDetails details,
    2. TextPosition (
      1. Offset offset
      )
    )?,
  26. bool onSingleLongTapStart(
    1. LongPressStartDetails details,
    2. TextPosition (
      1. Offset offset
      )
    )?,
  27. bool onSingleLongTapMoveUpdate(
    1. LongPressMoveUpdateDetails details,
    2. TextPosition (
      1. Offset offset
      )
    )?,
  28. bool onSingleLongTapEnd(
    1. LongPressEndDetails details,
    2. TextPosition (
      1. Offset offset
      )
    )?,
  29. @experimental KeyEventResult? onKeyPressed(
    1. KeyEvent event,
    2. Node? node
    )?,
  30. bool enableAlwaysIndentOnTab = false,
  31. Iterable<EmbedBuilder>? embedBuilders,
  32. TextSpanBuilder textSpanBuilder = defaultSpanBuilder,
  33. QuillMagnifierBuilder? quillMagnifierBuilder,
  34. EmbedBuilder? unknownEmbedBuilder,
  35. @experimental QuillSearchConfig searchConfig = const QuillSearchConfig(),
  36. LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
  37. CustomStyleBuilder? customStyleBuilder,
  38. CustomRecognizerBuilder? customRecognizerBuilder,
  39. bool floatingCursorDisabled = false,
  40. TextSelectionControls? textSelectionControls,
  41. Map<ShortcutActivator, Intent>? customShortcuts,
  42. Map<Type, Action<Intent>>? customActions,
  43. bool detectWordBoundary = true,
  44. bool onTapOutsideEnabled = true,
  45. dynamic onTapOutside(
    1. PointerDownEvent event,
    2. FocusNode focusNode
    )?,
  46. List<String> customLinkPrefixes = const <String>[],
  47. QuillDialogTheme? dialogTheme,
  48. ContentInsertionConfiguration? contentInsertionConfiguration,
  49. QuillEditorContextMenuBuilder? contextMenuBuilder,
  50. GlobalKey<EditorState>? editorKey,
  51. bool requestKeyboardFocusOnCheckListChanged = false,
  52. TextInputAction textInputAction = TextInputAction.newline,
  53. bool enableScribble = false,
  54. void onScribbleActivated()?,
  55. EdgeInsets? scribbleAreaInsets,
  56. MouseCursor readOnlyMouseCursor = SystemMouseCursors.text,
  57. void onPerformAction(
    1. TextInputAction action
    )?,
  58. @experimental LeadingBlockNodeBuilder? customLeadingBlockBuilder,
})

Implementation

const QuillEditorConfig({
  this.scrollable = true,
  this.padding = EdgeInsets.zero,
  @experimental this.characterShortcutEvents = const [],
  @experimental this.spaceShortcutEvents = const [],
  this.autoFocus = false,
  this.expands = false,
  this.placeholder,
  this.checkBoxReadOnly,
  this.disableClipboard = false,
  this.textSelectionThemeData,
  this.showCursor,
  this.paintCursorAboveText,
  this.enableInteractiveSelection = true,
  this.enableSelectionToolbar = true,
  this.scrollBottomInset = 0,
  this.minHeight,
  this.maxHeight,
  this.maxContentWidth,
  this.customStyles,
  this.textCapitalization = TextCapitalization.sentences,
  this.keyboardAppearance,
  this.scrollPhysics,
  this.onLaunchUrl,
  this.onTapDown,
  this.onTapUp,
  this.onSingleLongTapStart,
  this.onSingleLongTapMoveUpdate,
  this.onSingleLongTapEnd,
  @experimental this.onKeyPressed,
  this.enableAlwaysIndentOnTab = false,
  this.embedBuilders,
  this.textSpanBuilder = defaultSpanBuilder,
  this.quillMagnifierBuilder,
  this.unknownEmbedBuilder,
  @experimental this.searchConfig = const QuillSearchConfig(),
  this.linkActionPickerDelegate = defaultLinkActionPickerDelegate,
  this.customStyleBuilder,
  this.customRecognizerBuilder,
  this.floatingCursorDisabled = false,
  this.textSelectionControls,
  this.customShortcuts,
  this.customActions,
  this.detectWordBoundary = true,
  this.onTapOutsideEnabled = true,
  this.onTapOutside,
  this.customLinkPrefixes = const <String>[],
  this.dialogTheme,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder,
  this.editorKey,
  this.requestKeyboardFocusOnCheckListChanged = false,
  this.textInputAction = TextInputAction.newline,
  this.enableScribble = false,
  this.onScribbleActivated,
  this.scribbleAreaInsets,
  this.readOnlyMouseCursor = SystemMouseCursors.text,
  this.onPerformAction,
  @experimental this.customLeadingBlockBuilder,
});