combine7<T, A, B, C, D, E, F, G> static method
FlowState<T>
combine7<
T, A, B, C, D, E, F, G>( - FlowState<A> one,
- FlowState<B> two,
- FlowState<C> three,
- FlowState<D> four,
- FlowState<E> five,
- FlowState<F> six,
- FlowState<G> seven, [
- T combiner(
- A a,
- B b,
- C c,
- D d,
- E e,
- F f,
- G g,
)?,
])
Implementation
static FlowState<T> combine7<T, A, B, C, D, E, F, G>(
FlowState<A> one,
FlowState<B> two,
FlowState<C> three,
FlowState<D> four,
FlowState<E> five,
FlowState<F> six,
FlowState<G> seven, [
T Function(A a, B b, C c, D d, E e, F f, G g)? combiner,
]) {
combiner ??= (a, b, c, d, e, f, g) => [a, b, c, d, e, f, g] as T;
final combinedStream = Rx.combineLatest7<A, B, C, D, E, F, G, T>(
one.stream,
two.stream,
three.stream,
four.stream,
five.stream,
six.stream,
seven.stream,
combiner,
);
final initialCombinedValue = combiner(
one.current,
two.current,
three.current,
four.current,
five.current,
six.current,
seven.current,
);
return FlowState<T>(initialCombinedValue).._subject.addStream(combinedStream);
}