combineStateIn

fun <T1, T2, R> StateFlow<T1>.combineStateIn(coroutineScope: CoroutineScope, flow: StateFlow<T2>, transform: (a: T1, b: T2) -> R): StateFlow<R>

Transforms the values of two StateFlows and stores the result in a new StateFlow using the given coroutineScope.