onFrameRequestedNavigation property

Stream<FrameRequestedNavigationEvent> get onFrameRequestedNavigation

Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

Implementation

Stream<FrameRequestedNavigationEvent> get onFrameRequestedNavigation =>
    _client.onEvent
        .where((event) => event.name == 'Page.frameRequestedNavigation')
        .map((event) =>
            FrameRequestedNavigationEvent.fromJson(event.parameters));