Uploaded September 2019 | Updated November 2026, 6 hours ago
π Learn from the written tutorial ππ
resocoder.com/flutter-tdd-clean-architecture-ep5
π¨βπ» Do you write good code? Find out now!
resocoder.com/good-code-quiz
Repository is the brain of the data layer of an app. It handles data from remote and local Data Sources, decides which Data Source to prefer and also, this is where data caching policy is decided upon.
In the previous part, we've gone over the basic structure of the data layer and today, it's time to start implementing the data layer right from its core - from the NumberTriviaRepository, all the while creating contracts for its dependencies.
In this part, we will only create contracts for all the Repository dependencies. This will allow us to mock them easily without needing to bother with implementing them just yet - that's coming in the next parts.
Go to my website for more information, code examples, and articles:
β resocoder.com
Follow me on social media:
β instagram.com/resocoder
β facebook.com/resocoder
β twitter.com/resocoder
π Learn from the written tutorial ππ
resocoder.com/flutter-tdd-clean-architecture-ep5
π¨βπ» Do you write good code? Find out now!
resocoder.com/good-code-quiz
Repository is the brain of the data layer of an app. It handles data from remote and local Data Sources, decides which Data Source to prefer and also, this is where data caching policy is decided upon.
In the previous part, we've gone over the basic structure of the data layer and today, it's time to start implementing the data layer right from its core - from the NumberTriviaRepository, all the while creating contracts for its dependencies.
In this part, we will only create contracts for all the Repository dependencies. This will allow us to mock them easily without needing to bother with implementing them just yet - that's coming in the next parts.
Go to my website for more information, code examples, and articles:
β resocoder.com
Follow me on social media:
β instagram.com/resocoder
β facebook.com/resocoder
β twitter.com/resocoder
![Flutter TDD Clean Architecture Course [9] β Remote Data Source
π Learn from the written tutorial ππ
https://resocoder.com/flutter-tdd-clean-architecture-ep9
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
The last remaining part of the data layer for which we currently have only a contract is the remote Data Source. This is where all the communication with the Numbers API will happen, for which were going to use the http package. All of this will be done doing test-driven development, of course.
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter TDD Clean Architecture Course [9] β Remote Data Source](https://i.ytimg.com/vi/msGsYPtZnhU/mqdefault.jpg)
![Flutter Firebase & DDD Course [13] - Note Entities
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
What should we do with the value objects we created in the previous part? Lets group them together into entities representing a note and a todo item.
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter Firebase & DDD Course [13] - Note Entities](https://i.ytimg.com/vi/myFgLD4zI3o/mqdefault.jpg)








