flatMapLatestAsStateFlow

fun <T, R> StateFlow<T>.flatMapLatestAsStateFlow(transform: (T) -> StateFlow<R>): StateFlow<R>

Combines a list of StateFlows into another, instead of loosening the result to a Flow.