QuillEditorConfigurations constructor

const QuillEditorConfigurations({
  1. required QuillController controller,
  2. QuillSharedConfigurations sharedConfigurations = const QuillSharedConfigurations(),
  3. bool scrollable = true,
  4. EdgeInsetsGeometry padding = EdgeInsets.zero,
  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 = Brightness.light,
  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. Iterable<EmbedBuilder>? embedBuilders,
  30. EmbedBuilder? unknownEmbedBuilder,
  31. LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
  32. CustomStyleBuilder? customStyleBuilder,
  33. CustomRecognizerBuilder? customRecognizerBuilder,
  34. bool floatingCursorDisabled = false,
  35. TextSelectionControls? textSelectionControls,
  36. Future<String?> onImagePaste(
    1. Uint8List imageBytes
    )?,
  37. Future<String?> onGifPaste(
    1. Uint8List imageBytes
    )?,
  38. Map<ShortcutActivator, Intent>? customShortcuts,
  39. Map<Type, Action<Intent>>? customActions,
  40. bool detectWordBoundary = true,
  41. bool isOnTapOutsideEnabled = true,
  42. dynamic onTapOutside(
    1. PointerDownEvent event,
    2. FocusNode focusNode
    )?,
  43. List<String> customLinkPrefixes = const <String>[],
  44. QuillDialogTheme? dialogTheme,
  45. ContentInsertionConfiguration? contentInsertionConfiguration,
  46. QuillEditorContextMenuBuilder? contextMenuBuilder,
  47. GlobalKey<EditorState>? editorKey,
  48. bool requestKeyboardFocusOnCheckListChanged = false,
  49. QuillEditorElementOptions elementOptions = const QuillEditorElementOptions(),
  50. QuillEditorBuilder? builder,
  51. TextMagnifierConfiguration? magnifierConfiguration,
  52. TextInputAction textInputAction = TextInputAction.newline,
  53. bool enableScribble = false,
  54. void onScribbleActivated()?,
  55. EdgeInsets? scribbleAreaInsets,
  56. MouseCursor readOnlyMouseCursor = SystemMouseCursors.text,
})

Important note for the maintainers When editing this class please update the copyWith function too.

Implementation

const QuillEditorConfigurations({
  required this.controller,
  this.sharedConfigurations = const QuillSharedConfigurations(),
  this.scrollable = true,
  this.padding = EdgeInsets.zero,
  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 = Brightness.light,
  this.scrollPhysics,
  this.onLaunchUrl,
  this.onTapDown,
  this.onTapUp,
  this.onSingleLongTapStart,
  this.onSingleLongTapMoveUpdate,
  this.onSingleLongTapEnd,
  this.embedBuilders,
  this.unknownEmbedBuilder,
  this.linkActionPickerDelegate = defaultLinkActionPickerDelegate,
  this.customStyleBuilder,
  this.customRecognizerBuilder,
  this.floatingCursorDisabled = false,
  this.textSelectionControls,
  this.onImagePaste,
  this.onGifPaste,
  this.customShortcuts,
  this.customActions,
  this.detectWordBoundary = true,
  this.isOnTapOutsideEnabled = true,
  this.onTapOutside,
  this.customLinkPrefixes = const <String>[],
  this.dialogTheme,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder,
  this.editorKey,
  this.requestKeyboardFocusOnCheckListChanged = false,
  this.elementOptions = const QuillEditorElementOptions(),
  this.builder,
  this.magnifierConfiguration,
  this.textInputAction = TextInputAction.newline,
  this.enableScribble = false,
  this.onScribbleActivated,
  this.scribbleAreaInsets,
  this.readOnlyMouseCursor = SystemMouseCursors.text,
});