reset static method
void
reset()
reset method.
Implementation
static void reset() {
// Dispose in batch
/// _instances.forEach method.
_instances.forEach((type, instance) {
/// if method.
if (instance is Injectable) {
instance.onDispose();
}
});
_instances.clear();
_factories.clear();
_autoDispose.clear();
_scopedInstances.clear();
_taggedInstances.clear();
_taggedKeyCache.clear(); // Clear key cache
_notify('reset', Object);
}