combineLatest4<TIn2, TIn3, TIn4, TOut> method Null safety

ValueListenable<TOut> combineLatest4<TIn2, TIn3, TIn4, TOut>(
  1. ValueListenable<TIn2> combineWith2,
  2. ValueListenable<TIn3> combineWith3,
  3. ValueListenable<TIn4> combineWith4,
  4. CombiningFunction4<T, TIn2, TIn3, TIn4, TOut> combiner
)

Similar to what combineLatest does. Only change is you can listen to 4 ValueNotifiers together usage e.g: final subscription = listenable1

Implementation

//         .combineLatest4<String, String, String, String>(
//             listenable2, listenable3, listenable4, (i, j, k, s) => "$i:$j:$k:$s")
//         .listen((x, _) {
//       print(x);
//     });
ValueListenable<TOut> combineLatest4<TIn2, TIn3, TIn4, TOut>(
    ValueListenable<TIn2> combineWith2,
    ValueListenable<TIn3> combineWith3,
    ValueListenable<TIn4> combineWith4,
    CombiningFunction4<T, TIn2, TIn3, TIn4, TOut> combiner) {
  return CombiningValueNotifier4<T, TIn2, TIn3, TIn4, TOut>(
    combiner(this.value, combineWith2.value, combineWith3.value,
        combineWith4.value),
    this,
    combineWith2,
    combineWith3,
    combineWith4,
    combiner,
  );
}