subFlow

fun <T, S> StateFlow<S>.subFlow(contextScope: CoroutineScope = KVScope, sub: (S) -> T): StateFlow<T>(source)

Extension function returning a sub state flow.