copyWith method
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,
- dynamic onTapOutside(
- PointerDownEvent event,
- FocusNode focusNode
- KeyEventResult? 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 onTapDown(
- TapDownDetails details,
- TextPosition (
- Offset offset
- bool onTapUp(
- TapUpDetails details,
- TextPosition (
- Offset offset
- 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< ? customActions,Intent> > - bool? detectWordBoundary,
- List<
String> ? customLinkPrefixes, - QuillDialogTheme? dialogTheme,
- QuillEditorContextMenuBuilder? contextMenuBuilder,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- GlobalKey<
EditorState> ? editorKey, - TextSelectionThemeData? textSelectionThemeData,
- bool? requestKeyboardFocusOnCheckListChanged,
- TextInputAction? textInputAction,
- bool? enableScribble,
- void onScribbleActivated()?,
- EdgeInsets? scribbleAreaInsets,
- void onPerformAction(
- 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,
);
}