lifecycle property

Stream<String> get lifecycle

Lifecycle states the agent posts, as the app sees them (resumed, inactive, ...).

Implementation

Stream<String> get lifecycle => runtime.extensionEvents
    .where((e) => e.extensionKind == kAgentLifecycleEvent)
    .map((e) => '${e.extensionData?.data['state']}');