combine2<T1, T2, R> static method

RxComputed<R> combine2<T1, T2, R>(
  1. Rx<T1> rx1,
  2. Rx<T2> rx2,
  3. R combiner(
    1. T1,
    2. T2
    )
)

Implementation

static RxComputed<R> combine2<T1, T2, R>(
  Rx<T1> rx1,
  Rx<T2> rx2,
  R Function(T1, T2) combiner,
) {
  return computed(() => combiner(rx1.value, rx2.value));
}