initBackgroundService function

Future<void> initBackgroundService()

Implementation

Future<void> initBackgroundService() async {
  // SharedPreferences prefs = await SharedPreferences.getInstance();
  // await prefs.setBool("foreground", true);
  await Isolate.spawn(run, null);
  // await Isolate.run(() => run(null));
}