putScoped<T> static method
Registers an instance under a specific named scope
.
Implementation
static void putScoped<T>(T instance, String scope) {
_instances[T] = instance;
(_scopedInstances[scope] ??= {}).add(T);
if (instance is Injectable) {
instance.onInit();
}
_notify('putScoped', T);
}