getRepoAs<R extends ICRUD<T, P> > method
R
getRepoAs<R extends ICRUD<T, P> >()
Get the repository implementation
Implementation
R getRepoAs<R extends ICRUD<T, P>>() {
if (_repo != null) {
return _repo as R;
}
final repoMock = _cachedRepoMocks.last;
_repo = repoMock != null
? repoMock()
: (this as InjectedCRUDImp<T, P>).repoCreator();
return _repo as R;
}