combine3<A, B, C, R> method

ForkJoinStream<dynamic, R> combine3 <A, B, C, R>(
  1. Stream<A> streamA,
  2. Stream<B> streamB,
  3. Stream<C> streamC,
  4. R combiner(
    1. A a,
    2. B b,
    3. C c

Constructs a Stream that awaits the last values the provided Streams, then calls the combiner to emit an event of type R. After this event, the Stream closes.


static ForkJoinStream<dynamic, R> combine3<A, B, C, R>(
  Stream<A> streamA,
  Stream<B> streamB,
  Stream<C> streamC,
  R Function(A a, B b, C c) combiner,
) =>
    ForkJoinStream<dynamic, R>(
      [streamA, streamB, streamC],
      (List<dynamic> values) {
        return combiner(
          values[0] as A,
          values[1] as B,
          values[2] as C,