Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

519 B
Raw Blame
import 'package:appflowy/core/network_monitor.dart';
import '../startup.dart';

class InitPlatformServiceTask extends LaunchTask {
  const InitPlatformServiceTask();

  @override
  LaunchTaskType get type => LaunchTaskType.dataProcessing;

  @override
  Future<void> initialize(LaunchContext context) async {
    await super.initialize(context);

    return getIt<NetworkListener>().start();
  }

  @override
  Future<void> dispose() async {
    await super.dispose();

    await getIt<NetworkListener>().stop();
  }
}