cancelDownload method

Future<void> cancelDownload(
  1. String guid, {
  2. BrowserContextID? browserContextId,
})

Cancel a download if in progress guid Global unique identifier of the download. browserContextId BrowserContext to perform the action in. When omitted, default browser context is used.

Implementation

Future<void> cancelDownload(String guid,
    {BrowserContextID? browserContextId}) async {
  await _client.send('Browser.cancelDownload', {
    'guid': guid,
    if (browserContextId != null) 'browserContextId': browserContextId,
  });
}