computed3<T1, T2, T3, R> static method
Combine three States
into one States
.
When an item is emitted by one of three States, combine the latest item emitted by each States via a specified function and emit combined item that changed.
Modified from: https://reactivex.io/documentation/operators/combinelatest.html
Implementation
static States<R> computed3<T1, T2, T3, R>({
required States<T1> states1,
required States<T2> states2,
required States<T3> states3,
required R Function(T1, T2, T3) compute,
Equals<R>? equals,
}) => Observable.combine3<T1, T2, T3, R>(
source1: states1.observable,
source2: states2.observable,
source3: states3.observable,
combiner: compute,
).distinct(equals)
.asStates();