combineLatest2<T1, T2> static method

CombineLatestStream<dynamic, (T1, T2)> combineLatest2<T1, T2>(
  1. Stream<T1> a,
  2. Stream<T2> b
)

tupleへの型指定を省略してStreamのcombineを行う

Implementation

static CombineLatestStream<dynamic, (T1, T2)> combineLatest2<T1, T2>(
  Stream<T1> a,
  Stream<T2> b,
) {
  return CombineLatestStream.combine2(
    a,
    b,
    (a, b) => (a, b),
  );
}