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 Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪

You may also like

Flutter Integration Test Tutorial + Firebase Test Lab & Codemagic

Flutter Riverpod Tutorial – The Better Provider

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