setupLocator function
void setupLocator ()
<p>This function registers the widgets/objects in "GetIt".</p> <p><strong>params</strong>: None</p> <p><strong>returns</strong>: None</p>
Implementation
void setupLocator() \{
services
locator.registerSingleton(NavigationService());
sizeConfig
locator.registerSingleton(SizeConfig());
locator.registerSingleton(Validator());
userConfig
locator.registerSingleton(UserConfig());
Services
locator.registerLazySingleton(() =\> PostService());
locator.registerLazySingleton(() =\> EventService());
locator.registerLazySingleton(() =\> TaskService());
locator.registerLazySingleton(() =\> CommentService());
locator.registerLazySingleton(() =\> OrganizationService());
locator.registerLazySingleton(() =\> MultiMediaPickerService());
locator.registerLazySingleton(() =\> Connectivity());
locator.registerLazySingleton(() =\> ChatService());
locator.registerLazySingleton(() =\> ImageCropper());
locator.registerLazySingleton(() =\> ImagePicker());
graphql
locator.registerSingleton(GraphqlConfig());
databaseMutationFunction
locator.registerSingleton(DataBaseMutationFunctions());
queries
locator.registerSingleton(Queries());
Page viewModels
locator.registerFactory(() =\> DemoViewModel());
locator.registerFactory(() =\> OrganizationFeedViewModel());
locator.registerFactory(() =\> OrganizationFeedViewModel());
locator.registerFactory(() =\> SetUrlViewModel());
locator.registerFactory(() =\> LoginViewModel());
locator.registerFactory(() =\> SelectOrganizationViewModel());
locator.registerFactory(() =\> SignupDetailsViewModel());
locator.registerFactory(() =\> WaitingViewModel());
locator.registerFactory(() =\> ExploreEventsViewModel());
locator.registerFactory(() =\> ExploreTasksViewModel());
locator.registerFactory(() =\> CreateTaskViewModel());
locator.registerFactory(() =\> MainScreenViewModel());
locator.registerFactory(() =\> ProfilePageViewModel());
locator.registerFactory(() =\> EditProfilePageViewModel());
locator.registerFactory(() =\> CreateEventViewModel());
locator.registerFactory(() =\> EditEventViewModel());
locator.registerFactory(() =\> AddPostViewModel());
locator.registerFactory(() =\> EventInfoViewModel());
Widgets viewModels
locator.registerFactory(() =\> ProgressDialogViewModel());
locator.registerFactory(() =\> CustomDrawerViewModel());
locator.registerFactory(() =\> LikeButtonViewModel());
locator.registerFactory(() =\> AppLanguage());
locator.registerFactory(() =\> CommentsViewModel());
locator.registerFactory(() =\> AppTheme());
locator.registerFactory(() =\> DirectChatViewModel());
locator.registerFactory(() =\> AccessScreenViewModel());
\}