of static method
Implementation
static _ProgressHUDState? of(BuildContext context) {
final progressHudState = context.findAncestorStateOfType<_ProgressHUDState>();
assert(() {
if (progressHudState == null) {
throw FlutterError(
'ProgressHUD operation requested with a context that does not include a ProgressHUD.\n'
'The context used to show ProgressHUD must be that of a widget '
'that is a descendant of a ProgressHUD widget.');
}
return true;
}());
return progressHudState;
}