combine3<T, A, B, C> static method
Implementation
static FlowState<T> combine3<T, A, B, C>(
FlowState<A> one,
FlowState<B> two,
FlowState<C> three, [
T Function(A a, B b, C c)? combiner,
]) {
combiner ??= (a, b, c) => [a, b, c] as T;
final combinedStream = Rx.combineLatest3<A, B, C, T>(
one.stream,
two.stream,
three.stream,
combiner,
);
final initialCombinedValue = combiner(one.current, two.current, three.current);
return FlowState<T>(initialCombinedValue).._subject.addStream(combinedStream);
}