Summary
We learned about two approaches from React in this chapter: Redux and MobX. Both of the approaches used reactive-style programming where you create actions and listen through observables. To summarize, we have the following:
- Redux uses a unidirectional data flow to manage the state in your Flutter app.
- Redux uses a single store that keeps the whole state of your application.
- MobX uses the autogeneration of state management code, hence it is easier to understand and implement.
- The
build_runner
command generates the part of the file that is connected to the class created by us.
The two React-adopted techniques we learned about in this chapter are going to be helpful to you if you are coming from a React background and have used Redux in your React projects very often. Also, if you want to experience how autogeneration is helpful in large-scale apps, MobX is going to be your go-to technique.
In the next chapter, we will be studying some distinctive...