onJavascriptDialogClosed property

Stream<JavascriptDialogClosedEvent> get onJavascriptDialogClosed

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

Implementation

Stream<JavascriptDialogClosedEvent> get onJavascriptDialogClosed => _client
    .onEvent
    .where((event) => event.name == 'Page.javascriptDialogClosed')
    .map((event) => JavascriptDialogClosedEvent.fromJson(event.parameters));