removeFile method
Remove the downloaded file if it exists and the DownloadItem is
complete; otherwise return an error through runtime.lastError
.
Implementation
Future<void> removeFile(int downloadId) async {
await promiseToFuture<void>($js.chrome.downloads.removeFile(downloadId));
}