toggleToolbar method

void toggleToolbar([
  1. bool hideHandles = true
])

Toggles the visibility of the toolbar.

Implementation

void toggleToolbar([bool hideHandles = true]) {
  final TextSelectionOverlay selectionOverlay = _selectionOverlay ??= _createSelectionOverlay();
  if (selectionOverlay.toolbarIsVisible) {
    hideToolbar(hideHandles);
  } else {
    showToolbar();
  }
}