disposeScope static method

void disposeScope(
  1. String scope
)

disposeScope method.

Implementation

static void disposeScope(String scope) {
  /// Stores the =.
  final types = _scopedInstances.remove(scope);

  /// if method.
  if (types != null) {
    /// for method.
    for (final type in types) {
      /// Stores the =.
      final instance = _instances.remove(type);

      /// if method.
      if (instance is Injectable) {
        instance.onDispose();
      }
      _notify('disposeScope', type);
    }
  }
}