cancel method
Implementation
@override
Future<void> cancel(String? id) async {
// Nothing is loaded until the first compress, so a cancel before that has
// nothing to target — and touching the JS namespace would throw.
if (!_engineReady) return;
if (id != null) {
_jsCancel(id);
} else {
_jsCancelAll();
}
}