onDownloadWillBegin property

Stream<DownloadWillBeginEvent> get onDownloadWillBegin

Fired when page is about to start a download.

Implementation

Stream<DownloadWillBeginEvent> get onDownloadWillBegin => _client.onEvent
    .where((event) => event.name == 'Browser.downloadWillBegin')
    .map((event) => DownloadWillBeginEvent.fromJson(event.parameters));