combine9<A, B, C, D, E, F, G, H, I, R> method

CombineLatestStream<dynamic, R> combine9 <A, B, C, D, E, F, G, H, I, R>(Stream<A> streamA, Stream<B> streamB, Stream<C> streamC, Stream<D> streamD, Stream<E> streamE, Stream<F> streamF, Stream<G> streamG, Stream<H> streamH, Stream<I> streamI, R combiner(A a, B b, C c, D d, E e, F f, G g, H h, I i))

Constructs a CombineLatestStream from 9 Streams where combiner is used to create a new event of type R, based on the latest events emitted by the provided Streams.

Implementation

static CombineLatestStream<dynamic, R> combine9<A, B, C, D, E, F, G, H, I, R>(
  Stream<A> streamA,
  Stream<B> streamB,
  Stream<C> streamC,
  Stream<D> streamD,
  Stream<E> streamE,
  Stream<F> streamF,
  Stream<G> streamG,
  Stream<H> streamH,
  Stream<I> streamI,
  R combiner(A a, B b, C c, D d, E e, F f, G g, H h, I i),
) {
  return CombineLatestStream<dynamic, R>(
    [
      streamA,
      streamB,
      streamC,
      streamD,
      streamE,
      streamF,
      streamG,
      streamH,
      streamI
    ],
    (List<dynamic> values) {
      return combiner(
        values[0] as A,
        values[1] as B,
        values[2] as C,
        values[3] as D,
        values[4] as E,
        values[5] as F,
        values[6] as G,
        values[7] as H,
        values[8] as I,
      );
    },
  );
}