Created
June 27, 2019 19:01
-
-
Save VB10/da23753beec9fdf3e50d9b6fc9fb7f96 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
GetIt locator = GetIt(); | |
void setupLocator() { | |
locator.registerSingleton(Api()); | |
locator.registerSingleton(FeedApi()); | |
locator.registerFactory(() => LoginModel()); | |
locator.registerFactory(() => FeedModel()); | |
locator.registerFactory(() => SplashModel()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment