disposeActivator static method

void disposeActivator()

Cleans up resources used by the modal system

Call this when the modal system is no longer needed, typically during app shutdown or when the containing widget is being disposed.

Implementation

static void disposeActivator() {
  if (_showDebugPrints) {
    debugPrint("dispose Modal Activator"); // Debug logging
  }

  // Release resources
  _activeModalController.dispose();
  _dialogController.dispose();
  _sheetController.dispose();
  _snackbarController.dispose();

  // No overlay bootstrapper is used in the supported installation strategy.
}