combineLatest3<TIn2, TIn3, TOut> method Null safety

ValueListenable<TOut> combineLatest3<TIn2, TIn3, TOut>(
  1. ValueListenable<TIn2> combineWith2,
  2. ValueListenable<TIn3> combineWith3,
  3. CombiningFunction3<T, TIn2, TIn3, TOut> combiner
)

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

Implementation

//         .combineLatest3<String, String, String>(
//             listenable2, listenable3, (i, j, s) => "$i:$j:$s")
//         .listen((x, _) {
//       print(x);
//     });
ValueListenable<TOut> combineLatest3<TIn2, TIn3, TOut>(
    ValueListenable<TIn2> combineWith2,
    ValueListenable<TIn3> combineWith3,
    CombiningFunction3<T, TIn2, TIn3, TOut> combiner) {
  return CombiningValueNotifier3<T, TIn2, TIn3, TOut>(
    combiner(this.value, combineWith2.value, combineWith3.value),
    this,
    combineWith2,
    combineWith3,
    combiner,
  );
}