onBackForwardCacheNotUsed property

Stream<BackForwardCacheNotUsedEvent> get onBackForwardCacheNotUsed

Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.

Implementation

Stream<BackForwardCacheNotUsedEvent> get onBackForwardCacheNotUsed => _client
    .onEvent
    .where((event) => event.name == 'Page.backForwardCacheNotUsed')
    .map((event) => BackForwardCacheNotUsedEvent.fromJson(event.parameters));