toggleToolbar method Null safety

void toggleToolbar()

Toggles the visibility of the toolbar.

Implementation

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