showHelper method

dynamic showHelper(
  1. WidgetBuilder widgetBuilder
)

Implementation

showHelper(WidgetBuilder widgetBuilder) {
  popHelper();
  overlayEntry = OverlayEntry(
    opaque: false,
    builder: widgetBuilder,
  );
  final overlay = navigatorKey.currentState?.overlay;
  assert(overlay != null, "No overlay for context found");
  if (overlay != null) {
    overlay.insert(overlayEntry!);
  }
}