show method
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,
);
},
);
}
}