cancelExecution method

Future<void> cancelExecution(
  1. int executionId
)

Cancels the execution specified with executionId.

Implementation

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