onDownloadWillBegin property

Stream<DownloadWillBeginEvent> get onDownloadWillBegin

Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.

Implementation

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