show method

void show(
  1. BuildContext context
)

Implementation

void show(BuildContext context) {
  _context = context;
  if (!_isShowing) {
    _dialog = const LoadingImage();
    _isShowing = true;
    showDialog<dynamic>(
      context: _context,
      barrierColor: Colors.black.withOpacity(0.6),
      barrierDismissible: kDebugMode,
      builder: (BuildContext context) {
        _dismissingContext = context;
        return WillPopScope(
          onWillPop: () {
            return Future.value(false);
          },
          child: _dialog,
        );
      },
    );
  }
}