onDownloadWillBegin property

Stream<DownloadWillBeginEvent> 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));