getScope<T> method

T getScope<T>(
  1. Scope<T> s
)

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;
}