getScope<T> method
Scopeの値を取得(未設定ならStateError)
Implementation
T getScope<T>(Scope<T> s) {
if (!_scopes.containsKey(s)) {
throw StateError(
'Scope value not provided: ${s.debugName ?? s.toString()}',
);
}
return _scopes[s] as T;
}