copyWith method

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

Implementation

QuillEditorConfig copyWith({
  LeadingBlockNodeBuilder? customLeadingBlockBuilder,
  String? placeholder,
  List<CharacterShortcutEvent>? characterShortcutEvents,
  List<SpaceShortcutEvent>? spaceShortcutEvents,
  bool? checkBoxReadOnly,
  bool? disableClipboard,
  bool? scrollable,
  double? scrollBottomInset,
  bool? enableAlwaysIndentOnTab,
  EdgeInsetsGeometry? padding,
  bool? autoFocus,
  bool? onTapOutsideEnabled,
  Function(PointerDownEvent event, FocusNode focusNode)? onTapOutside,
  KeyEventResult? Function(KeyEvent event, Node? node)? onKeyPressed,
  bool? showCursor,
  bool? paintCursorAboveText,
  MouseCursor? readOnlyMouseCursor,
  bool? enableInteractiveSelection,
  bool? enableSelectionToolbar,
  double? minHeight,
  double? maxHeight,
  double? maxContentWidth,
  DefaultStyles? customStyles,
  bool? expands,
  TextCapitalization? textCapitalization,
  Brightness? keyboardAppearance,
  ScrollPhysics? scrollPhysics,
  ValueChanged<String>? onLaunchUrl,
  bool Function(TapDownDetails details, TextPosition Function(Offset offset))?
      onTapDown,
  bool Function(TapUpDetails details, TextPosition Function(Offset offset))?
      onTapUp,
  Iterable<EmbedBuilder>? embedBuilders,
  TextSpanBuilder? textSpanBuilder,
  EmbedBuilder? unknownEmbedBuilder,
  CustomStyleBuilder? customStyleBuilder,
  CustomRecognizerBuilder? customRecognizerBuilder,
  QuillSearchConfig? searchConfig,
  LinkActionPickerDelegate? linkActionPickerDelegate,
  bool? floatingCursorDisabled,
  TextSelectionControls? textSelectionControls,
  Map<ShortcutActivator, Intent>? customShortcuts,
  Map<Type, Action<Intent>>? customActions,
  bool? detectWordBoundary,
  List<String>? customLinkPrefixes,
  QuillDialogTheme? dialogTheme,
  QuillEditorContextMenuBuilder? contextMenuBuilder,
  ContentInsertionConfiguration? contentInsertionConfiguration,
  GlobalKey<EditorState>? editorKey,
  TextSelectionThemeData? textSelectionThemeData,
  bool? requestKeyboardFocusOnCheckListChanged,
  TextInputAction? textInputAction,
  bool? enableScribble,
  void Function()? onScribbleActivated,
  EdgeInsets? scribbleAreaInsets,
  void Function(TextInputAction action)? onPerformAction,
}) {
  return QuillEditorConfig(
    customLeadingBlockBuilder:
        customLeadingBlockBuilder ?? this.customLeadingBlockBuilder,
    placeholder: placeholder ?? this.placeholder,
    characterShortcutEvents:
        characterShortcutEvents ?? this.characterShortcutEvents,
    spaceShortcutEvents: spaceShortcutEvents ?? this.spaceShortcutEvents,
    checkBoxReadOnly: checkBoxReadOnly ?? this.checkBoxReadOnly,
    disableClipboard: disableClipboard ?? this.disableClipboard,
    scrollable: scrollable ?? this.scrollable,
    onKeyPressed: onKeyPressed ?? this.onKeyPressed,
    scrollBottomInset: scrollBottomInset ?? this.scrollBottomInset,
    enableAlwaysIndentOnTab:
        enableAlwaysIndentOnTab ?? this.enableAlwaysIndentOnTab,
    padding: padding ?? this.padding,
    autoFocus: autoFocus ?? this.autoFocus,
    onTapOutsideEnabled: onTapOutsideEnabled ?? this.onTapOutsideEnabled,
    onTapOutside: onTapOutside ?? this.onTapOutside,
    showCursor: showCursor ?? this.showCursor,
    paintCursorAboveText: paintCursorAboveText ?? this.paintCursorAboveText,
    readOnlyMouseCursor: readOnlyMouseCursor ?? this.readOnlyMouseCursor,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
    enableSelectionToolbar:
        enableSelectionToolbar ?? this.enableSelectionToolbar,
    minHeight: minHeight ?? this.minHeight,
    maxHeight: maxHeight ?? this.maxHeight,
    maxContentWidth: maxContentWidth ?? this.maxContentWidth,
    customStyles: customStyles ?? this.customStyles,
    expands: expands ?? this.expands,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    scrollPhysics: scrollPhysics ?? this.scrollPhysics,
    onLaunchUrl: onLaunchUrl ?? this.onLaunchUrl,
    onTapUp: onTapUp ?? this.onTapUp,
    onTapDown: onTapDown ?? this.onTapDown,
    embedBuilders: embedBuilders ?? this.embedBuilders,
    textSpanBuilder: textSpanBuilder ?? this.textSpanBuilder,
    unknownEmbedBuilder: unknownEmbedBuilder ?? this.unknownEmbedBuilder,
    customStyleBuilder: customStyleBuilder ?? this.customStyleBuilder,
    customRecognizerBuilder:
        customRecognizerBuilder ?? this.customRecognizerBuilder,
    searchConfig: searchConfig ?? this.searchConfig,
    linkActionPickerDelegate:
        linkActionPickerDelegate ?? this.linkActionPickerDelegate,
    floatingCursorDisabled:
        floatingCursorDisabled ?? this.floatingCursorDisabled,
    textSelectionControls:
        textSelectionControls ?? this.textSelectionControls,
    customShortcuts: customShortcuts ?? this.customShortcuts,
    customActions: customActions ?? this.customActions,
    detectWordBoundary: detectWordBoundary ?? this.detectWordBoundary,
    customLinkPrefixes: customLinkPrefixes ?? this.customLinkPrefixes,
    dialogTheme: dialogTheme ?? this.dialogTheme,
    contextMenuBuilder: contextMenuBuilder ?? this.contextMenuBuilder,
    contentInsertionConfiguration:
        contentInsertionConfiguration ?? this.contentInsertionConfiguration,
    editorKey: editorKey ?? this.editorKey,
    textSelectionThemeData:
        textSelectionThemeData ?? this.textSelectionThemeData,
    requestKeyboardFocusOnCheckListChanged:
        requestKeyboardFocusOnCheckListChanged ??
            this.requestKeyboardFocusOnCheckListChanged,
    textInputAction: textInputAction ?? this.textInputAction,
    enableScribble: enableScribble ?? this.enableScribble,
    onScribbleActivated: onScribbleActivated ?? this.onScribbleActivated,
    scribbleAreaInsets: scribbleAreaInsets ?? this.scribbleAreaInsets,
    onPerformAction: onPerformAction ?? this.onPerformAction,
  );
}