computed6<T1, T2, T3, T4, T5, T6, R> static method
Combine six States
into one States
.
When an item is emitted by one of six 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> computed6<T1, T2, T3, T4, T5, T6, R>({
required States<T1> states1,
required States<T2> states2,
required States<T3> states3,
required States<T4> states4,
required States<T5> states5,
required States<T6> states6,
required R Function(T1, T2, T3, T4, T5, T6) compute,
Equals<R>? equals,
}) => Observable.combine6<T1, T2, T3, T4, T5, T6, R>(
source1: states1.observable,
source2: states2.observable,
source3: states3.observable,
source4: states4.observable,
source5: states5.observable,
source6: states6.observable,
combiner: compute,
).distinct(equals)
.asStates();