From ed1ceb58f07bf13e865753b4f18486a62514149c Mon Sep 17 00:00:00 2001 From: X Code Date: Mon, 27 Dec 2021 20:14:52 -0800 Subject: [PATCH] Add comments --- lib/src/widgets/raw_editor.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index c531ff88..a29fc90a 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -699,6 +699,10 @@ class RawEditorState extends EditorState getRenderEditor()!.debugAssertLayoutUpToDate(); } + /// Shows the selection toolbar at the location of the current cursor. + /// + /// Returns `false` if a toolbar couldn't be shown, such as when the toolbar + /// is already shown, or when no text selection currently exists. @override bool showToolbar() { // Web is using native dom elements to enable clipboard functionality of the