cancelDownload method
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,
});
}