hideToolbar method Null safety

void hideToolbar()

Hides the toolbar part of the overlay.

To hide the whole overlay, see hide.

Implementation

void hideToolbar() {
  assert(_toolbar != null);
  _toolbarController.stop();
  _toolbar!.remove();
  _toolbar = null;
}