Summary
In this chapter, we delved even deeper into the realm of state management. First, we explored the history of how popular state management patterns came to be. We learned the ideas behind such patterns as MVC, MVVM, MVI, and BLoC, as well as how to implement them in Flutter both by using tools available out of the box and via a well-known and widely used library called flutter_bloc
. We also implemented a pattern called Segmented State with DelayedResult
, which applies to any other solution that we choose. Moreover, we learned about important concepts in Flutter and Dart, such as Dart streams and object equality, as well as how to manage equality with the help of the Equatable
library.
Now, we’re equipped with the tools we need to manage the state of our Flutter applications, which vary in terms of complexity. We have the required knowledge to decide on the most suitable pattern and tools for ourselves since there is no single pattern that suits everyone.
In Chapter...