erase method
Erase matching DownloadItem from history without deleting the
downloaded file. An onErased event will fire for each
DownloadItem that matches query
, then
callback
will be called.
Implementation
Future<List<int>> erase(DownloadQuery query) async {
var $res =
await promiseToFuture<JSArray>($js.chrome.downloads.erase(query.toJS));
return $res.toDart.cast<int>().map((e) => e).toList();
}