showToolbar method

void showToolbar()

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

Implementation

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

  // make sure handles are visible as well
  if (_handles == null) {
    showHandles();
  }
}