File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ class QuillToolbarClipboardButton extends QuillToolbarToggleStyleBaseButton {
71
71
}) : _options = options,
72
72
super (options: options ?? const QuillToolbarClipboardButtonOptions ());
73
73
74
- // TODO: This field will be used by the PR: https://github.com/singerdmx/flutter-quill/pull/2427
75
- // ignore: unused_field
76
74
final QuillToolbarClipboardButtonOptions ? _options;
77
75
78
76
final ClipboardAction clipboardAction;
@@ -96,7 +94,7 @@ class QuillToolbarClipboardButtonState
96
94
case ClipboardAction .paste:
97
95
return ! controller.readOnly &&
98
96
(kIsWeb ||
99
- (widget.options .enableClipboardPaste ?? _monitor.canPaste));
97
+ (widget._options ? .enableClipboardPaste ?? _monitor.canPaste));
100
98
}
101
99
}
102
100
@@ -161,7 +159,7 @@ class QuillToolbarClipboardButtonState
161
159
162
160
bool get _shouldUseClipboardMonitor {
163
161
return widget.clipboardAction == ClipboardAction .paste &&
164
- widget.options .enableClipboardPaste == null ;
162
+ ( widget._options ? .enableClipboardPaste == null ) ;
165
163
}
166
164
167
165
void _onPressed () {
You can’t perform that action at this time.
0 commit comments