cancelAllTasks method
Cancels all tasks
Returns the number of cancelled tasks
Implementation
@override
Future<int> cancelAllTasks() async {
try {
final result = await methodChannel.invokeMethod<int>('cancelAllTasks');
return result ?? 0;
} on PlatformException catch (e) {
throw PlatformException(
code: e.code,
message: e.message,
details: e.details,
);
}
}