@@ -94,23 +94,23 @@ class QuillToolbarClipboardButtonState
94
94
void didUpdateWidget (QuillToolbarClipboardButton oldWidget) {
95
95
super .didUpdateWidget (oldWidget);
96
96
97
- // Default didUpdateWidget handler, otherwise simple flag change didn't stop the monitor
97
+ // Default didUpdateWidget handler, otherwise simple flag change didn't stop the monitor.
98
98
if (oldWidget.controller != controller) {
99
99
oldWidget.controller.removeListener (didChangeEditingValue);
100
100
removeExtraListener (oldWidget);
101
101
controller.addListener (didChangeEditingValue);
102
102
addExtraListener ();
103
103
currentValue = currentStateValue;
104
104
}
105
- // If controller didn't change, but something else did (enableClipboardPaste)
105
+ // The controller didn't change, but enableClipboardPaste did.
106
106
else if (widget.clipboardAction == ClipboardAction .paste) {
107
- // If enableClipboardPaste is null, check if clipboard monitor is active and enable it if not
107
+ // Check if the clipboard monitor is active and enable it if not.
108
108
if (widget.options.enableClipboardPaste == null ) {
109
109
if (! (_monitor._timer? .isActive ?? false )) {
110
110
_monitor.monitorClipboard (true , _listenClipboardStatus);
111
111
}
112
112
} else {
113
- // Otherwise check if the timer is active and disable it
113
+ // Otherwise check if the timer is active and disable it.
114
114
if (_monitor._timer == null || _monitor._timer! .isActive) {
115
115
_monitor.monitorClipboard (false , _listenClipboardStatus);
116
116
}
0 commit comments