reset static method

void reset()

Disposes and clears all registered instances, factories, scopes and tags.

Implementation

static void reset() {
  _instances.forEach((type, instance) {
    if (instance is Injectable) {
      instance.onDispose();
    }
  });
  _instances.clear();
  _factories.clear();
  _autoDispose.clear();
  _scopedInstances.clear();
  _taggedInstances.clear();
  _notify('reset', Object);
}