selfprivacy.org.app/lib/config/get_it_config.dart

18 lines
608 B
Dart
Raw Normal View History

2021-01-14 21:48:05 +00:00
import 'package:get_it/get_it.dart';
import 'package:selfprivacy/logic/get_it/console.dart';
2021-02-15 18:58:29 +00:00
import 'package:selfprivacy/logic/get_it/navigation.dart';
2021-01-19 12:05:40 +00:00
import 'package:selfprivacy/logic/get_it/timer.dart';
2021-01-14 21:48:05 +00:00
2021-02-15 18:58:29 +00:00
export 'package:selfprivacy/logic/get_it/console.dart';
export 'package:selfprivacy/logic/get_it/navigation.dart';
export 'package:selfprivacy/logic/get_it/timer.dart';
2021-01-14 21:48:05 +00:00
final getIt = GetIt.instance;
void getItSetup() {
2021-02-15 18:58:29 +00:00
getIt.registerSingleton<NavigationService>(NavigationService());
2021-01-19 12:05:40 +00:00
getIt.registerSingleton<ConsoleModel>(ConsoleModel());
getIt.registerSingleton<TimerModel>(TimerModel());
2021-01-14 21:48:05 +00:00
}