from2<T, A, B> static method

ChildPod<dynamic, T> from2<T, A, B>(
  1. Pods2<A, B> instances,
  2. T reducer(
    1. Pods2<A, B> instances
    ),
  3. (A?, B?) updateParents(
    1. T childValue
    )?
)

Reduces a tuple 2 Pod - instances to a single ChildPod instance via reducer. Optionally provide updateParents to define how parent Pods should be updated when this Pod changes.

Implementation

static ChildPod<dynamic, T> from2<T, A, B>(
  Pods2<A, B> instances,
  T Function(Pods2<A, B> instances) reducer,
  (A?, B?) Function(T childValue)? updateParents,
) {
  return reduce2Pods(
    instances,
    reducer,
    updateParents,
  );
}