cancel static method

Future<void> cancel(
  1. String name
)

Cancels all executions of a task by name.

Implementation

static Future<void> cancel(String name) async {
  _ensureInitialized();
  await TaskFlowPlatform.instance.cancel(name);
}