toolbarIsVisible property
Whether the toolbar is currently visible.
Includes both the text selection toolbar and the spell check menu.
Implementation
bool get toolbarIsVisible {
return selectionControls is TextSelectionHandleControls
? _contextMenuController.isShown || _spellCheckToolbarController.isShown
: _toolbar != null || _spellCheckToolbarController.isShown;
}