disposeModule<T extends EasyModule> method
Disposes a module and reloads all modules that depend on it.
This method disposes the module and then reloads all modules that depend on it. After disposing, it will:
- Reset the module's state and injector
- Re-process its imports to ensure dependencies are properly linked
- Recursively reload any modules that depend on this one
Example:
await ModulesManager.instance.disposeModule<UserModule>();
Throws an Exception if the module is not found in the manager.
Implementation
@Deprecated('Use EasyDI.disposeModule instead')
Future<void> disposeModule<T extends EasyModule>() async => EasyDI.disposeModule<T>();