cancelWorkById function

Future<bool> cancelWorkById(
  1. String uuid
)

Cancels work with the given uuid if it isn't finished.

Note that cancellation is a best-effort policy and work that is already executing may continue to run.

Implementation

Future<bool> cancelWorkById(String uuid) async
  => await apiChannel.invokeMethod('$METHOD_PREFIX#cancelWorkById', uuid);