Repository is a class which puts the network and local data operations into a centralized place. Repository is also a place for orchestrating the data caching. We don’t need to fetch data from the network every time the user launches our app. If the local data is relatively up-to-date, we can use it instead.

In this part the series you are going to learn how to create such a repository. You’re also going to learn how to finally set up the dependency injection so that we are prepared for the next part.

?Get the code from this tutorial?

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a freelancer and most importantly developer educator, he is set on helping other people succeed in their Flutter app development career.

You may also like

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>