Created
February 21, 2019 18:06
-
-
Save marcguilera/4bbc70efa0e969859f4755e5f793f4f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "package:dependencies/dependencies.dart"; | |
import "comment/service.dart"; | |
import "post/service.dart"; | |
import "user/service.dart"; | |
class ServiceModule implements Module { | |
@override | |
void configure(Binder binder) { | |
binder | |
..bindSingleton("https://jsonplaceholder.typicode.com", name: "api_root") | |
..bindLazySingleton<PostService>((i, p) => PostRestService(i)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment