cancel method

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

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();
  }
}