hideToolbar method Null safety

void hideToolbar()

Hides the toolbar part of the overlay.

To hide the whole overlay, see hide.

Implementation

void hideToolbar() {
  if (_toolbar == null) {
    return;
  }
  _toolbar?.remove();
  _toolbar = null;
}