disposeScope static method

void disposeScope(
  1. String scope
)

Implementation

static void disposeScope(String scope) {
  final types = _scopedInstances[scope];
  if (types != null) {
    for (var type in types) {
      final instance = _instances.remove(type);
      if (instance is Injectable) instance.onDispose();
      _notify('disposeScope', type);
    }
    _scopedInstances.remove(scope);
  }
}