The MVC Design Pattern: Model and Controller
Learn about the model-view-controller pattern and what the roles of model and controller are.
We'll cover the following
The Model-View-Controller pattern
Model-View-Controller (MVC) pattern is the recommended way to organize Flutter code.
This type of organization helps make our code more readable and reusable.
Take time to write the code along with detailed documentation, so that later we can come back and understand the code at every step.
In previous lessons, we have used the model-view-controller pattern to manage an ephemeral, single widget stateful app that allows users to take part in a quiz app. Although it was not a full-blown, complete app, it helps us see how to organize our code.
This lesson will focus on learning about the MVC pattern that we glossed over previously.
Get hands-on with 1400+ tech skills courses.