map<B extends Object> method

ChildPod<T, B> map<B extends Object>(
  1. B reducer(
    1. T value
    )
)

Maps this GenericPod to a new ChildPod using the specified reducer.

Implementation

ChildPod<T, B> map<B extends Object>(B Function(T value) reducer) {
  return ChildPod<T, B>(
    responder: () => [this],
    reducer: (_) => reducer(value),
  );
}