cancel method

  1. @override
Future<void> cancel(
  1. String jobId
)
override

Asks the platform to abandon jobId. The matching trimVideo future completes with a monolens/cancelled PlatformException.

Implementation

@override
Future<void> cancel(String jobId) async {
  cancellations.add(jobId);
  _cancelled.add(jobId);
}