onLifecycleEvent property

Stream<LifecycleEventEvent> get onLifecycleEvent

Fired for top level page lifecycle events such as navigation, load, paint, etc.

Implementation

Stream<LifecycleEventEvent> get onLifecycleEvent => _client.onEvent
    .where((event) => event.name == 'Page.lifecycleEvent')
    .map((event) => LifecycleEventEvent.fromJson(event.parameters));