pause method
Pause the download. If the request was successful the download is in a
paused state. Otherwise runtime.lastError
contains an error message.
The request will fail if the download is not active.
|downloadId|: The id of the download to pause.
|callback|: Called when the pause request is completed.
Implementation
Future<void> pause(int downloadId) async {
await promiseToFuture<void>($js.chrome.downloads.pause(downloadId));
}