cancel method

Future<void> cancel()

Cancels all ongoing executions.

Implementation

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