showToolbar method Null safety

void showToolbar()

Shows the toolbar by inserting it into the context's overlay.

Implementation

void showToolbar() {
  if (_toolbar != null) {
    return;
  }
  _toolbar = OverlayEntry(builder: _buildToolbar);
  Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!.insert(_toolbar!);
}