Flutter TDD Clean Architecture Course [13] – Dependency Injection
36.4 هزار بار بازدید -
5 سال پیش
-
📗 Learn from the written
📗 Learn from the written tutorial 👇👇
https://resocoder.com/flutter-tdd-cle...
👨💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
We have all of the individual pieces of the app architecture in place. Before we can utilize them by building a UI though, we have to connect them together. Since every class is decoupled from its dependencies by accepting them through the constructor, we somehow have to pass them in.
We've been doing this all along in tests with the mocked classes. Now, however, comes the time to pass in real production classes using a service locator.
Go to my website for more information, code examples, and articles:
● https://resocoder.com
Follow me on social media:
● Instagram: resocoder
● Facebook: resocoder
● Twitter: resocoder
https://resocoder.com/flutter-tdd-cle...
👨💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
We have all of the individual pieces of the app architecture in place. Before we can utilize them by building a UI though, we have to connect them together. Since every class is decoupled from its dependencies by accepting them through the constructor, we somehow have to pass them in.
We've been doing this all along in tests with the mocked classes. Now, however, comes the time to pass in real production classes using a service locator.
Go to my website for more information, code examples, and articles:
● https://resocoder.com
Follow me on social media:
● Instagram: resocoder
● Facebook: resocoder
● Twitter: resocoder
5 سال پیش
در تاریخ 1398/07/29 منتشر شده
است.
36,456
بـار بازدید شده