stopForegroundTask method

Future<bool> stopForegroundTask()

Stop the foreground service

Implementation

Future<bool> stopForegroundTask() async {
  debugPrint("[DEBUG] Stopping foreground location service at ${DateTime.now()}");
  return await FlutterForegroundTask.stopService();
}