cancelDownload method

void cancelDownload(
  1. String url, {
  2. Map<String, String>? headers,
})

Implementation

void cancelDownload(String url, {Map<String, String>? headers}) {
  jsInvokeMethod("cancel_download", url, null);

  _downloadStreams.remove(url)?.close();
}