combineLatest6<TIn2, TIn3, TIn4, TIn5, TIn6, TOut> method Null safety

ValueListenable<TOut> combineLatest6<TIn2, TIn3, TIn4, TIn5, TIn6, TOut>(
  1. ValueListenable<TIn2> combineWith2,
  2. ValueListenable<TIn3> combineWith3,
  3. ValueListenable<TIn4> combineWith4,
  4. ValueListenable<TIn5> combineWith5,
  5. ValueListenable<TIn6> combineWith6,
  6. CombiningFunction6<T, TIn2, TIn3, TIn4, TIn5, TIn6, TOut> combiner
)

Similar to what combineLatest does. Only change is you can listen to 6 ValueNotifiers together usage e.g: final subscription = listenable1 .combineLatest6<String, String, String, String, String, String>( listenable2, listenable3, listenable4, listenable5, listenable6, (i, j, k, l, m, s) => "$i:$j:$k:$l:$m:$s") .listen((x, _) { print(x); });

Implementation

ValueListenable<TOut> combineLatest6<TIn2, TIn3, TIn4, TIn5, TIn6, TOut>(
    ValueListenable<TIn2> combineWith2,
    ValueListenable<TIn3> combineWith3,
    ValueListenable<TIn4> combineWith4,
    ValueListenable<TIn5> combineWith5,
    ValueListenable<TIn6> combineWith6,
    CombiningFunction6<T, TIn2, TIn3, TIn4, TIn5, TIn6, TOut> combiner) {
  return CombiningValueNotifier6<T, TIn2, TIn3, TIn4, TIn5, TIn6, TOut>(
    combiner(this.value, combineWith2.value, combineWith3.value,
        combineWith4.value, combineWith5.value, combineWith6.value),
    this,
    combineWith2,
    combineWith3,
    combineWith4,
    combineWith5,
    combineWith6,
    combiner,
  );
}