2022-08-06 14:13:28 +02:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// StackedLocatorGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
// ignore_for_file: public_member_api_docs
|
|
|
|
|
2022-08-07 02:13:27 +02:00
|
|
|
// ignore: depend_on_referenced_packages
|
2022-08-06 14:13:28 +02:00
|
|
|
import 'package:stacked_core/stacked_core.dart';
|
2022-08-07 02:13:27 +02:00
|
|
|
// ignore: implementation_imports
|
2022-08-06 14:13:28 +02:00
|
|
|
import 'package:stacked_services/src/navigation/navigation_service.dart';
|
|
|
|
|
|
|
|
final locator = StackedLocator.instance;
|
|
|
|
|
|
|
|
Future<void> setupLocator(
|
|
|
|
{String? environment, EnvironmentFilter? environmentFilter}) async {
|
|
|
|
// Register environments
|
|
|
|
locator.registerEnvironment(
|
|
|
|
environment: environment, environmentFilter: environmentFilter);
|
|
|
|
|
|
|
|
// Register dependencies
|
|
|
|
locator.registerLazySingleton(() => NavigationService());
|
|
|
|
}
|