open method
Opens the downloaded file now if the DownloadItem is complete;
otherwise returns an error through runtime.lastError
. This method
requires the "downloads.open"
permission in addition to the
"downloads"
permission. An onChanged event fires
when the item is opened for the first time. This method can only be called
in response to a user gesture.
|downloadId|: The identifier for the downloaded file.
Implementation
void open(int downloadId) {
$js.chrome.downloads.open(downloadId);
}