This is a direct application of the declarative approach which Flutter strongly emphasizes i.e. UI = f (state). BLoC is a place where events from the user interface go . Within this layer, as a result of applying business rules to a given event, BLoC responds with a specific state, which then goes back to the UI.
Read moreWhat is a BLoC in Flutter?
Bloc is a design pattern created by Google to help separate business logic from the presentation layer and enable a developer to reuse code more efficiently . A state management library called Bloc was created and maintained by Felix Angelo.22 Eki 2021
Read moreWhat is BLoC and Cubit in Flutter?
felangel/bloc: A predictable state management library that helps implement the BLoC design pattern (github.com) [Updated 24/04/2021] Null Safety. The Cubit is a subset of the famous implementation of BLoC Pattern: bloclibrary.
Read more