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