combineLatest5<TIn2, TIn3, TIn4, TIn5, TOut> method Null safety

ValueListenable<TOut> combineLatest5<TIn2, TIn3, TIn4, TIn5, TOut>(
  1. ValueListenable<TIn2> combineWith2,
  2. ValueListenable<TIn3> combineWith3,
  3. ValueListenable<TIn4> combineWith4,
  4. ValueListenable<TIn5> combineWith5,
  5. CombiningFunction5<T, TIn2, TIn3, TIn4, TIn5, TOut> combiner
)

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

Implementation

//         .combineLatest5<String, String, String, String, String>(
//             listenable2,
//             listenable3,
//             listenable4,
//             listenable5,
//             (i, j, k, l, s) => "$i:$j:$k:$l:$s")
//         .listen((x, _) {
//       print(x);
//     });
ValueListenable<TOut> combineLatest5<TIn2, TIn3, TIn4, TIn5, TOut>(
    ValueListenable<TIn2> combineWith2,
    ValueListenable<TIn3> combineWith3,
    ValueListenable<TIn4> combineWith4,
    ValueListenable<TIn5> combineWith5,
    CombiningFunction5<T, TIn2, TIn3, TIn4, TIn5, TOut> combiner) {
  return CombiningValueNotifier5<T, TIn2, TIn3, TIn4, TIn5, TOut>(
    combiner(this.value, combineWith2.value, combineWith3.value,
        combineWith4.value, combineWith5.value),
    this,
    combineWith2,
    combineWith3,
    combineWith4,
    combineWith5,
    combiner,
  );
}