reduce<T1, T2> static method
ChildPod<T1, T2>
reduce<T1, T2>(
- Iterable<
GenericPod< responder(),T1> > - T2 reducer(
- Iterable<
GenericPod< valuesT1> >
- Iterable<
Reduces multiple Pods into a ChildPod.
Implementation
static ChildPod<T1, T2> reduce<T1, T2>(
Iterable<GenericPod<T1>> Function() responder,
T2 Function(Iterable<GenericPod<T1>> values) reducer,
) {
return ChildPod<T1, T2>._(
responder: responder,
reducer: (_) {
final response = responder();
return reducer(response);
},
);
}