mapStateIn
fun <T, M> StateFlow<T>.mapStateIn(coroutineScope: CoroutineScope, transform: (value: T) -> M): StateFlow<M>
Transforms the value of a StateFlow and stores it in a new StateFlow using the given coroutineScope.
Transforms the value of a StateFlow and stores it in a new StateFlow using the given coroutineScope.