-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy patheditor_config.dart
More file actions
617 lines (556 loc) · 23.3 KB
/
Copy patheditor_config.dart
File metadata and controls
617 lines (556 loc) · 23.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
/// @docImport '../../rules/insert.dart';
library;
import 'dart:ui' as ui;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart' show experimental;
import '../../document/nodes/node.dart';
import '../../toolbar/theme/quill_dialog_theme.dart';
import '../embed/embed_editor_builder.dart';
import '../raw_editor/builders/leading_block_builder.dart';
import '../raw_editor/config/events/events.dart';
import '../raw_editor/config/raw_editor_config.dart';
import '../raw_editor/raw_editor.dart';
import '../widgets/default_styles.dart';
import '../widgets/delegate.dart';
import '../widgets/link.dart' hide linkPrefixes;
import '../widgets/text/magnifier.dart';
import '../widgets/text/utils/text_block_utils.dart';
import 'search_config.dart';
// IMPORTANT For project authors: The QuillEditorConfig.copyWith()
// should be manually updated each time we add or remove a property
/// The configuration of the editor widget.
@immutable
class QuillEditorConfig {
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.mergeImeCompositionHistory = 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,
});
@experimental
final LeadingBlockNodeBuilder? customLeadingBlockBuilder;
/// The text placeholder in the quill editor
final String? placeholder;
/// Contains all the events that will be handled when
/// the exact characters satifies the condition. This mean
/// if you press asterisk key, if you have a `CharacterShortcutEvent` with
/// the asterisk then that event will be handled
///
/// Supported by:
///
/// - Web
/// - Desktop
/// ### Example
///```dart
/// // you can get also the default implemented shortcuts
/// // calling [standardSpaceShorcutEvents]
///final defaultShorcutsImplementation =
/// List.from([...standardCharactersShortcutEvents])
///
///final boldFormat = CharacterShortcutEvent(
/// key: 'Shortcut event that will format current wrapped text in asterisk'
/// character: '*',
/// handler: (controller) {...your implementation}
///);
///```
@experimental
final List<CharacterShortcutEvent> characterShortcutEvents;
/// Contains all the events that will be handled when
/// space key is pressed
///
/// Supported by:
///
/// - Web
/// - Desktop
///
/// ### Example
///```dart
/// // you can get also the default implemented shortcuts
/// // calling [standardSpaceShorcutEvents]
///final defaultShorcutsImplementation =
/// List.from([...standardSpaceShorcutEvents])
///
///final spaceBulletList = SpaceShortcutEvent(
/// character: '-',
/// handler: (QuillText textNode, controller) {...your implementation}
///);
///```
@experimental
final List<SpaceShortcutEvent> spaceShortcutEvents;
/// A handler for keys that are pressed when the editor is focused.
///
/// This feature is supported on **desktop devices** and **mobile devices with a
/// hardware keyboard connected.** It is not supported by virtual on-screen
/// keyboards of touch devices.
///
/// # Example:
/// To prevent the user from removing any **Embed Object**, try:
///
///```dart
///onKeyPressed: (event, node) {
/// if (event.logicalKey == LogicalKeyboardKey.backspace &&
/// (node is Line || node is Block)) {
/// // Use [DeltaIterator] to jump directly to the position before the current.
/// final iterator = DeltaIterator(_controller.document.toDelta())
/// ..skip(_controller.selection.baseOffset - 1);
/// // Get the [Operation] where the caret is on
/// final cur = iterator.next();
/// final isOperationWithEmbed = cur.data is! String && cur.data != null;
/// if (isOperationWithEmbed) {
/// // Ignore this [KeyEvent] to prevent the user from removing the [Embed Object].
/// return KeyEventResult.handled;
/// }
/// }
/// // Apply custom logic or return null to use default events
/// return null;
///},
///```
@experimental
final KeyEventResult? Function(KeyEvent event, Node? node)? onKeyPressed;
/// Override [readOnly] for checkbox.
///
/// When this is set to `false`, the checkbox can be checked
/// or unchecked while [readOnly] is set to `true`.
/// When this is set to `null`, the [readOnly] value is used.
///
/// Defaults to `null`.
final bool? checkBoxReadOnly;
/// Disable Clipboard features
///
/// when this is set to `true` clipboard can not be used
/// this disables the clipboard notification for requesting permissions
///
/// Defaults to `false`.
final bool disableClipboard;
/// Whether to merge the IME composing text (uncommitted text) into a single
/// undo/redo history step.
///
/// When set to `true`, typing Pinyin or other IME candidates will be grouped
/// together, preventing the undo stack from recording every single keystroke.
/// Defaults to `false`.
final bool mergeImeCompositionHistory;
/// Whether this editor should create a scrollable container for its content.
///
/// When set to `true` the editor's height can be controlled by [minHeight],
/// [maxHeight] and [expands] properties.
///
/// When set to `false` the editor always expands to fit the entire content
/// of the document and should normally be placed as a child of another
/// scrollable widget, otherwise the content may be clipped.
/// by default it will by true
final bool scrollable;
final double scrollBottomInset;
/// Enables always indenting when the TAB key is pressed.
///
/// When set to true, pressing the TAB key will always insert an indentation
/// regardless of the context. If set to false, the TAB key will only indent
/// when the cursor is at the beginning of a list item. In other cases, it will
/// insert a tab character.
///
/// Defaults to false. Must not be null.
final bool enableAlwaysIndentOnTab;
/// Additional space around the content of this editor.
/// by default will be [EdgeInsets.zero]
final EdgeInsetsGeometry padding;
/// Whether this editor should focus itself if nothing else is already
/// focused.
///
/// If true, the keyboard will open as soon as this editor obtains focus.
/// Otherwise, the keyboard is only shown after the user taps the editor.
///
/// Defaults to `false`. Cannot be `null`.
final bool autoFocus;
/// Whether the [onTapOutside] should be triggered or not.
///
/// Defaults to `true`.
///
/// See also: [onTapOutside] and [QuillRawEditorConfig.onTapOutsideEnabled].
final bool onTapOutsideEnabled;
/// By default on non-mobile platforms, the editor will unfocus.
///
/// On mobile platforms, it will only unfocus if the input kind in [PointerDownEvent.kind]
/// is [ui.PointerDeviceKind.unknown].
///
/// By passing a non-null value, you will override the default behavior.
///
/// See also: [onTapOutsideEnabled] and [QuillRawEditorConfig.onTapOutside].
final Function(PointerDownEvent event, FocusNode focusNode)? onTapOutside;
/// Whether to show cursor.
///
/// The cursor refers to the blinking caret when the editor is focused.
final bool? showCursor;
final bool? paintCursorAboveText;
/// The [readOnlyMouseCursor] is used for Windows, macOS when [readOnly] is [true]
final MouseCursor readOnlyMouseCursor;
/// Whether to enable user interface affordances for changing the
/// text selection.
///
/// For example, setting this to true will enable features such as
/// long-pressing the editor to select text and show the
/// cut/copy/paste menu, and tapping to move the text cursor.
///
/// When this is false, the text selection cannot be adjusted by
/// the user, text cannot be copied, and the user cannot paste into
/// the text field from the clipboard.
///
/// To disable just the selection toolbar, set enableSelectionToolbar
/// to false.
final bool enableInteractiveSelection;
/// Whether to show the cut/copy/paste menu when selecting text.
final bool enableSelectionToolbar;
/// The minimum height to be occupied by this editor.
///
/// This only has effect if [scrollable] is set to `true` and [expands] is
/// set to `false`.
final double? minHeight;
/// The maximum height to be occupied by this editor.
///
/// This only has effect if [scrollable] is set to `true` and [expands] is
/// set to `false`.
final double? maxHeight;
/// The maximum width to be occupied by the content of this editor.
///
/// If this is not null and and this editor's width is larger than this value
/// then the contents will be constrained to the provided maximum width and
/// horizontally centered. This is mostly useful on devices with wide screens.
final double? maxContentWidth;
/// Allows to override [DefaultStyles].
final DefaultStyles? customStyles;
/// Whether this editor's height will be sized to fill its parent.
///
/// This only has effect if [scrollable] is set to `true`.
///
/// If expands is set to true and wrapped in a parent widget like [Expanded]
/// or [SizedBox], the editor will expand to fill the parent.
///
/// [maxHeight] and [minHeight] must both be `null` when this is set to
/// `true`.
///
/// Defaults to `false`.
final bool expands;
/// Configures how the platform keyboard will select an uppercase or
/// lowercase keyboard.
///
/// Only supports text keyboards, other keyboard types will ignore this
/// configuration. Capitalization is locale-aware.
///
/// Defaults to [TextCapitalization.sentences]. Must not be `null`.
final TextCapitalization textCapitalization;
/// The appearance of the keyboard.
///
/// This setting is only honored on iOS devices.
///
/// Defaults to Material/Cupertino App Brightness.
///
/// The keyboard appearance will set using the following:
///
/// ```dart
/// widget.config.keyboardAppearance ??
/// CupertinoTheme.maybeBrightnessOf(context) ??
/// Theme.of(context).brightness
/// ```
///
/// See also: https://github.com/flutter/flutter/blob/06b9f7ba0bef2b5b44a643c73f4295a096de1202/packages/flutter/lib/src/services/text_input.dart#L621-L626
/// and [QuillRawEditorConfig.keyboardAppearance]
final Brightness? keyboardAppearance;
/// The [ScrollPhysics] to use when vertically scrolling the input.
///
/// This only has effect if [scrollable] is set to `true`.
///
/// If not specified, it will behave according to the current platform.
///
/// See [Scrollable.physics].
final ScrollPhysics? scrollPhysics;
/// Callback to invoke when user wants to launch a URL.
final ValueChanged<String>? onLaunchUrl;
// Returns whether gesture is handled
final bool Function(
TapDownDetails details, TextPosition Function(Offset offset))? onTapDown;
// Returns whether gesture is handled
final bool Function(
TapUpDetails details, TextPosition Function(Offset offset))? onTapUp;
// Returns whether gesture is handled
final bool Function(
LongPressStartDetails details, TextPosition Function(Offset offset))?
onSingleLongTapStart;
// Returns whether gesture is handled
final bool Function(LongPressMoveUpdateDetails details,
TextPosition Function(Offset offset))? onSingleLongTapMoveUpdate;
// Returns whether gesture is handled
final bool Function(
LongPressEndDetails details, TextPosition Function(Offset offset))?
onSingleLongTapEnd;
final Iterable<EmbedBuilder>? embedBuilders;
final EmbedBuilder? unknownEmbedBuilder;
final CustomStyleBuilder? customStyleBuilder;
final CustomRecognizerBuilder? customRecognizerBuilder;
final TextSpanBuilder textSpanBuilder;
/// To add a magnifier when selecting, specify a builder that returns the magnfier widget
///
/// The default is no magnifier
///
/// There is a provided magnifier [QuillMagnifier] that is available via the function
/// defaultQuillMagnifierBuilder
final QuillMagnifierBuilder? quillMagnifierBuilder;
/// See [search](https://github.com/singerdmx/flutter-quill/blob/master/doc/configurations/search.md)
/// page for docs.
@experimental
final QuillSearchConfig searchConfig;
/// Delegate function responsible for showing menu with link actions on
/// mobile platforms (iOS, Android).
///
/// The menu is triggered in editing mode ([readOnly] is set to `false`)
/// when the user long-presses a link-styled text segment.
///
/// FlutterQuill provides default implementation which can be overridden by
/// this field to customize the user experience.
///
/// By default on iOS the menu is displayed with [showCupertinoModalPopup]
/// which constructs an instance of [CupertinoActionSheet]. For Android,
/// the menu is displayed with [showModalBottomSheet] and a list of
/// Material [ListTile]s.
final LinkActionPickerDelegate linkActionPickerDelegate;
final bool floatingCursorDisabled;
/// allows to create a custom textSelectionControls,
/// if this is null a default textSelectionControls based on the app's theme
/// will be used
final TextSelectionControls? textSelectionControls;
/// Contains user-defined shortcuts map.
///
/// [https://docs.flutter.dev/development/ui/advanced/actions-and-shortcuts#shortcuts]
final Map<ShortcutActivator, Intent>? customShortcuts;
/// Contains user-defined actions.
///
/// [https://docs.flutter.dev/development/ui/advanced/actions-and-shortcuts#actions]
final Map<Type, Action<Intent>>? customActions;
final bool detectWordBoundary;
/// Link prefixes that are addations to [linkPrefixes], which are used
/// on link launch [LinkMenuAction.launch] to check whether a link is valid.
///
/// If a link is not valid and link launch is requested,
/// the editor will append `https://` as prefix to the link.
///
/// This is used to tapping links within the editor, and not the toolbar or
/// [AutoFormatMultipleLinksRule].
final List<String> customLinkPrefixes;
/// Configures the dialog theme.
final QuillDialogTheme? dialogTheme;
// Allows for creating a custom context menu
final QuillEditorContextMenuBuilder? contextMenuBuilder;
/// Configuration of handler for media content inserted via the system input
/// method.
///
/// See [https://api.flutter.dev/flutter/widgets/EditableText/contentInsertionConfiguration.html]
final ContentInsertionConfiguration? contentInsertionConfiguration;
/// Using the editorKey for get getLocalRectForCaret
/// editorKey.currentState?.renderEditor.getLocalRectForCaret
final GlobalKey<EditorState>? editorKey;
/// By default we will use
/// ```
/// TextSelectionTheme.of(context)
/// ```
/// to change it please pass a different value
final TextSelectionThemeData? textSelectionThemeData;
/// When there is a change the check list values
/// should we request keyboard focus??
final bool requestKeyboardFocusOnCheckListChanged;
/// Default to [TextInputAction.newline]
final TextInputAction textInputAction;
/// Enable Scribble? Currently Apple Pencil only, defaults to false.
final bool enableScribble;
/// Called when Scribble is activated.
final void Function()? onScribbleActivated;
/// Optional insets for the scribble area.
final EdgeInsets? scribbleAreaInsets;
/// Called when a text input action is performed.
final void Function(TextInputAction action)? onPerformAction;
// IMPORTANT For project authors: The copyWith()
// should be manually updated each time we add or remove a property
QuillEditorConfig copyWith({
LeadingBlockNodeBuilder? customLeadingBlockBuilder,
String? placeholder,
List<CharacterShortcutEvent>? characterShortcutEvents,
List<SpaceShortcutEvent>? spaceShortcutEvents,
bool? checkBoxReadOnly,
bool? disableClipboard,
bool? mergeImeCompositionHistory,
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,
mergeImeCompositionHistory:
mergeImeCompositionHistory ?? this.mergeImeCompositionHistory,
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,
);
}
}