showHelper method

dynamic showHelper(
  1. BuildContext context,
  2. WidgetBuilder widgetBuilder
)

Implementation

showHelper(BuildContext context, WidgetBuilder widgetBuilder) {
  popHelper();
  overlayEntry = OverlayEntry(
    opaque: false,
    builder: widgetBuilder,
  );
  final overlay = Overlay.maybeOf(context);
  if (overlay != null) {
    overlay.insert(overlayEntry!);
  }
}