get<E extends Entity> method

E get<E extends Entity>(
  1. RepositoryScope<Entity> scope
)

Implementation

E get<E extends Entity>(RepositoryScope scope) {
  final entity = _scopes[scope];

  if (entity == null) throw _entityNotFound;
  return entity as E;
}