combine4<T1, T2, T3, T4, R> static method

RxComputed<R> combine4<T1, T2, T3, T4, R>(
  1. Rx<T1> rx1,
  2. Rx<T2> rx2,
  3. Rx<T3> rx3,
  4. Rx<T4> rx4,
  5. R combiner(
    1. T1,
    2. T2,
    3. T3,
    4. T4,
    ),
)

Implementation

static RxComputed<R> combine4<T1, T2, T3, T4, R>(
  Rx<T1> rx1,
  Rx<T2> rx2,
  Rx<T3> rx3,
  Rx<T4> rx4,
  R Function(T1, T2, T3, T4) combiner,
) {
  return computed(() => combiner(rx1.value, rx2.value, rx3.value, rx4.value));
}