reduce<C, P1> static method
ChildPod<dynamic, C>
reduce<C, P1>(
- TResponderFn1<
P1> responder, - TNullableReducerFn1<
C, P1> reducer
Reduces 1 Pod into a ChildPod.
Implementation
static ChildPod<dynamic, C> reduce<C, P1>(
TResponderFn1<P1> responder,
TNullableReducerFn1<C, P1> reducer,
) {
return ChildPod<dynamic, C>._(
responder: () => _toList(responder),
reducer: (_) => _reduce(responder, reducer),
);
}