Injectable – Flutter & Dart Equivalent to Dagger & Angular Dependency Injection
???? Written tutorial & starter project ????????
???? Get Flutter news ???? and resources:
???????? Do you write good code? Find out now!
Dependency injection is necessary if you're not coding spaghetti ???? and you want to keep nice layers of separation in your Flutter app's codebase. The problem is that all of the libraries out there, such as get_it or kiwi, are just service locators with no support or limited support for automating the registration of dependencies.
Dagger solves it elegantly for native Android and Angular is also known for its powerful dependency injection framework. Now, we Flutter developers can finally use something similar - the injectable package which is a code generator for get_it.
Go to my website for more information, code examples, and articles:
Follow me on social media: