from2<T, A, B> static method
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,
);
}