toggleToolbar method

void toggleToolbar()

Toggles the visibility of the toolbar.

Implementation

void toggleToolbar() {
  TextSelectionOverlay? _selectionOverlay = _textFormControlElement._selectionOverlay;
  assert(_selectionOverlay != null);
  if (_selectionOverlay!.toolbarIsVisible) {
    hideToolbar();
  } else {
    showToolbar();
  }
}