setupFlutterUpLocators function
Implementation
setupFlutterUpLocators(List<FlutterUpLocators>? locators) {
if (locators != null && locators.isNotEmpty) {
for (var locator in locators) {
if (locator == FlutterUpLocators.upUrlService) {
_locator.registerLazySingleton(() => UpUrlService());
}
if (locator == FlutterUpLocators.upNavigationService) {
_locator.registerLazySingleton(() => UpNavigationService());
}
if (locator == FlutterUpLocators.upDialogService) {
_locator.registerLazySingleton(() => UpDialogService());
}
if (locator == FlutterUpLocators.upSearchService) {
_locator.registerLazySingleton(() => UpSearchService());
}
if (locator == FlutterUpLocators.upLayoutService) {
_locator.registerLazySingleton(() => UpLayoutService());
}
if (locator == FlutterUpLocators.upScaffoldService) {
_locator.registerLazySingleton(() => UpScaffoldService());
}
}
}
}