combineLatest3<A, B, C, T> static method Null safety

Stream<T> combineLatest3<A, B, C, T>(
  1. Stream<A> streamA,
  2. Stream<B> streamB,
  3. Stream<C> streamC,
  4. T combiner(
    1. A a,
    2. B b,
    3. C c

Merges the given Streams into a single Stream sequence by using the combiner function whenever any of the stream sequences emits an item.

The Stream will not emit until all streams have emitted at least one item.

Interactive marble diagram


  Stream.fromIterable(['c', 'c']),
  (a, b, c) => a + b + c)
.listen(print); //prints 'abc', 'abc'


static Stream<T> combineLatest3<A, B, C, T>(
        Stream<A> streamA,
        Stream<B> streamB,
        Stream<C> streamC,
        T Function(A a, B b, C c) combiner) =>
    CombineLatestStream.combine3(streamA, streamB, streamC, combiner);