A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Bloc State Management is an efficient way to handle routing and communication in a Model-View-Controller (MVC) model. It separates business logic from user interface (ui). It increases code readability.
It contains 3 sections
It contain function declarations for occurance of an event. eg: A user likes a post .i.e. like button is clicked!
It contains function logic for the event occured. eg: The like button turns red and user credentials of the user who liked are stored in database.
Bloc produces a state after the action has been performed. It indicates that the state of the particular object has been changed. eg: The like button turns red and like count increases by 1.