Skip to content

Commit 420a629

Browse files
authored
docs: minor changes to comments
1 parent 284ab26 commit 420a629

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/toolbar/buttons/clipboard_button.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,23 @@ class QuillToolbarClipboardButtonState
9494
void didUpdateWidget(QuillToolbarClipboardButton oldWidget) {
9595
super.didUpdateWidget(oldWidget);
9696

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.
9898
if (oldWidget.controller != controller) {
9999
oldWidget.controller.removeListener(didChangeEditingValue);
100100
removeExtraListener(oldWidget);
101101
controller.addListener(didChangeEditingValue);
102102
addExtraListener();
103103
currentValue = currentStateValue;
104104
}
105-
// If controller didn't change, but something else did (enableClipboardPaste)
105+
// The controller didn't change, but enableClipboardPaste did.
106106
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.
108108
if (widget.options.enableClipboardPaste == null) {
109109
if (!(_monitor._timer?.isActive ?? false)) {
110110
_monitor.monitorClipboard(true, _listenClipboardStatus);
111111
}
112112
} else {
113-
// Otherwise check if the timer is active and disable it
113+
// Otherwise check if the timer is active and disable it.
114114
if (_monitor._timer == null || _monitor._timer!.isActive) {
115115
_monitor.monitorClipboard(false, _listenClipboardStatus);
116116
}

0 commit comments

Comments
 (0)