cancel method

Future<void> cancel()

Cancels all ongoing executions.

Implementation

Future<void> cancel() async {
  try {
    await _methodChannel.invokeMethod('cancel');
  } on PlatformException catch (e) {
    print("Plugin cancel error: ${e.message}");
  }
}