removeDownloads method

Future<void> removeDownloads(
  1. RemovalOptions options
)

Clears the browser's list of downloaded files (not the downloaded files themselves). returns Called when the browser's list of downloaded files has been cleared.

Implementation

Future<void> removeDownloads(RemovalOptions options) async {
  await promiseToFuture<void>(
      $js.chrome.browsingData.removeDownloads(options.toJS));
}