What is mapEventToState?

In the current version, mapEventToState returns a Stream which lends itself to relying on async generators (async*) in order to react to events and emit states . The new on<Event> API introduced in v7. 2.0 makes it easier and safer to implement complex state changes while eliminating uncertainty.

Read more

What is repository in BLoC?

RepositoryProvider is a specialized widget used to provide a repository while the BlocProvider is a specialized widget used to provide a bloc. As a best practice repositories are injected into blocs and act as an abstraction layer between your data sources and your business logic component(bloc) .23 May 2020

Read more