init_platform_service.dart 379 B

1234567891011121314
  1. import 'package:app_flowy/startup/launcher.dart';
  2. import 'package:app_flowy/user/infrastructure/network_monitor.dart';
  3. import '../startup.dart';
  4. class InitPlatformService extends LaunchTask {
  5. @override
  6. LaunchTaskType get type => LaunchTaskType.dataProcessing;
  7. @override
  8. Future<void> initialize(LaunchContext context) async {
  9. getIt<NetworkMonitor>().start();
  10. }
  11. }