dispose method
Disposes all registered modules.
This method disposes all registered modules and clears the internal modules map. After disposing, it will:
- Reset the module's state and injector
- Re-process its imports to ensure dependencies are properly linked
Implementation
@visibleForTesting
@Deprecated('Use EasyDI.reset instead')
void dispose() => EasyDI.reset();