/dart-dependency-injection

Simple example of how to use dependency injection throught interfaces

Primary LanguageDart

This is a simple example of how to use dependency injection with dart.

In this example we create a simple abstract classe IHttpService to hold the methods to get a http response. We implemented the abstract classe IHttpServie as a interface withing two services, Http and Dio.