TestEnvironment constructor

TestEnvironment({
  1. required List<BlocBuilder<Bloc>> blocBuilders,
  2. required List<RepositoryBuilder<Repository>> repositoryBuilders,
  3. 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();