LifecycleStateFlow

fun LifecycleStateFlow(lifecycle: Lifecycle): StateFlow<Lifecycle.State>

A StateFlow that tracks the current Lifecycle.State.