What is Bloc? 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 .
Read moreShould I use BLoC or cubit?
Blocs are more verbose than Cubits . Additional boilerplate — shown in the example below — is needed for states and events. But, in my opinion, this is a price worth paying. In the long run, traceability is a precondition for the manageability of your app.
Read more