onJavascriptDialogOpening property

Stream<JavascriptDialogOpeningEvent> get onJavascriptDialogOpening

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

Implementation

Stream<JavascriptDialogOpeningEvent> get onJavascriptDialogOpening => _client
    .onEvent
    .where((event) => event.name == 'Page.javascriptDialogOpening')
    .map((event) => JavascriptDialogOpeningEvent.fromJson(event.parameters));