showOverlay method

Future<void> showOverlay(
  1. WidgetBuilder builder
)

Implementation

Future<void> showOverlay(WidgetBuilder builder) async {
  assert(_overlayBuilder == null);
  final completer = Completer<void>();
  setState(() {
    _overlayBuilder = builder;
    _overlayCompleter = completer;
    _overlayAnimation.forward();
  });
  return completer.future;
}