TestEnvironment constructor
TestEnvironment({
- required List<
BlocBuilder< blocBuilders,Bloc> > - required List<
RepositoryBuilder< repositoryBuilders,Repository> > - RepositorySource? repositorySource,
Creates a test environment using blocBuilders
and repositoryBuilders
This is made to mimic the MultiRepositoryProvider and MultiBlocProvider setup.
Implementation
TestEnvironment({
required this.blocBuilders,
required this.repositoryBuilders,
RepositorySource? repositorySource,
}) : repositorySource = repositorySource ?? RepositorySource();