reduce<C, P1, P2> static method
ChildPod<dynamic, C>
reduce<C, P1, P2>(
- TResponderFn2<
P1, P2> responder, - TNullableReducerFn2<
C, P1, P2> reducer
Reduces 2 Pods into a ChildPod.
Implementation
static ChildPod<dynamic, C> reduce<C, P1, P2>(
TResponderFn2<P1, P2> responder,
TNullableReducerFn2<C, P1, P2> reducer,
) {
return ChildPod<dynamic, C>._(
responder: () => _toList(responder),
reducer: (_) => _reduce(responder, reducer),
);
}