resume method

Future<void> resume(
  1. int downloadId
)

Resume a paused download. If the request was successful the download is in progress and unpaused. Otherwise runtime.lastError contains an error message. The request will fail if the download is not active. |downloadId|: The id of the download to resume. |callback|: Called when the resume request is completed.

Implementation

Future<void> resume(int downloadId) async {
  await promiseToFuture<void>($js.chrome.downloads.resume(downloadId));
}