closeAll static method

void closeAll()

Closes all active loading overlays. Called automatically by ModLoadingNavigatorObserver on navigation events.

Implementation

static void closeAll() {
  try {
    final entries = Map<int, OverlayEntry>.from(_entries);
    for (final entry in entries.values) {
      entry.remove();
    }
    _entries.clear();
    instance._overlayEntry = null;
  } catch (e) {
    Get.printError(info: 'ModLoading: Error closing all loadings - $e');
  }
}