toolbarIsVisible property

bool get toolbarIsVisible

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;
}