scope<S> method
Creates a new scope that provides owner
as "scoped".
See concepts to understand what's the difference between "scoped" and "factory".
Implementation
Scope scope<S>(S owner) {
var scope = get<Scope>(qualifier: S);
ScopeBuilder._(scope).scoped<S>((scope) => owner);
return scope;
}