-
public final class FlowKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any, M extends Any> StateFlow<M>mapStateIn(StateFlow<T> $self, CoroutineScope coroutineScope, Function1<T, M> transform)Transforms the value of a StateFlow and stores it in a new StateFlow using the given coroutineScope. final static <T1 extends Any, T2 extends Any, R extends Any> StateFlow<R>combineStateIn(StateFlow<T1> $self, CoroutineScope coroutineScope, StateFlow<T2> flow, Function2<T1, T2, R> transform)Transforms the values of two StateFlows and stores the result in a new StateFlow using the given coroutineScope. -
-
Method Detail
-
mapStateIn
final static <T extends Any, M extends Any> StateFlow<M> mapStateIn(StateFlow<T> $self, CoroutineScope coroutineScope, Function1<T, M> transform)
Transforms the value of a StateFlow and stores it in a new StateFlow using the given coroutineScope.
-
combineStateIn
final static <T1 extends Any, T2 extends Any, R extends Any> StateFlow<R> combineStateIn(StateFlow<T1> $self, CoroutineScope coroutineScope, StateFlow<T2> flow, Function2<T1, T2, R> transform)
Transforms the values of two StateFlows and stores the result in a new StateFlow using the given coroutineScope.
-
-
-
-