Skip to content

Commit

Permalink
docs: address #2427 (comment), document enableClipboardPaste to indic…
Browse files Browse the repository at this point in the history
…ates that this is only applicable for the paste button
  • Loading branch information
EchoEllet committed Jan 18, 2025
1 parent 3bee144 commit 2af39ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/toolbar/config/buttons/clipboard_button_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ class QuillToolbarClipboardButtonOptions
/// Defaults to [ClipboardMonitor] in case of `null`, which checks if the clipboard has content to paste every second and only then enables the button, indicating to the user that they can paste something.
///
/// Set it to `true` to enable it even if the clipboard has no content to paste, which will do nothing on a press.
///
/// Only applicable if the [QuillToolbarClipboardButton.clipboardAction]
/// is [ClipboardAction.paste].
final bool? enableClipboardPaste;
}

0 comments on commit 2af39ca

Please sign in to comment.