cancel method
Cancel a download. When callback
is run, the download is
cancelled, completed, interrupted or doesn't exist anymore.
|downloadId|: The id of the download to cancel.
|callback|: Called when the cancel request is completed.
Implementation
Future<void> cancel(int downloadId) async {
await promiseToFuture<void>($js.chrome.downloads.cancel(downloadId));
}