get<R> static method
R
get<R>()
Gets a repository of type R.
Implementation
static R get<R>() {
final repo = _repositories[R];
if (repo == null) {
throw Exception('Repository of type $R not registered.');
}
return repo as R;
}