Summary
This chapter was full of code snippets, where we created a shopping cart application using six different state management techniques that we studied in a couple of previous chapters—BLoC, Cubit, Provider, Riverpod, Redux, and MobX.
This chapter was a deep dive into all of those six techniques discussed in the previous chapters. We have practically implemented all the concepts of all the aforementioned techniques, which include events, states, and actions in BLoC and Cubit; usage of the .of()
method in Provider and Riverpod; the single source of true state in Redux; and code autogeneration in MobX. Furthermore, by now, you should have completely understood the following state management techniques—setState
, InheritedWidget
, InheritedModel
, Provider, Riverpod, BLoC, Cubit, Redux, and MobX.
In the next chapter, we will study how to create a shopping cart application using GetX, GetIt, and Binder state management techniques.