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();
// Reset appBuilder installation flag so it can be re-installed
// (important for tests where widget trees are recreated)
_appBuilderInstalled = false;
// No overlay bootstrapper is used in the supported installation strategy.
}