removeFile method

Future<void> removeFile(
  1. int downloadId
)

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