cancel method Null safety
Cancels all ongoing executions.
Implementation
Future<void> cancel() async {
try {
await _methodChannel.invokeMethod('cancel');
} on PlatformException catch (e) {
print('Plugin cancel error: ${e.message}');
}
}