isRunning property

Future<bool> isRunning

isRunning returns whether the background task is running or not.

Implementation

Future<bool> get isRunning async {
  final result =
      await _methodChannel.invokeMethod<bool>('is_running_background_task');
  return result ?? false;
}