show static method
Implementation
static Future<void> show({required BuildContext context, Widget? child, bool darken = false}) async {
try {
if (_currentHud != null) {
_currentHud!.navigator!.pop();
}
CustomLoading hud = CustomLoading(child,darken);
_currentHud = hud;
Navigator.push(context, hud);
} catch (e) {
_currentHud = null;
}
}