show static method

Future<void> show(
  1. BuildContext context
)

Implementation

static Future<void> show(BuildContext context) async {
  try {
    if (_currentHud != null) {
      _currentHud!.navigator!.pop();
    }
    CupertinoHeadUpLoading hud = CupertinoHeadUpLoading();
    _currentHud = hud;
    Navigator.push(context, hud);
  } catch (e) {
    _currentHud = null;
  }
}