map<B> method

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

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

Implementation

ChildPod<T, B> map<B>(B Function(T? value) reducer) {
  return ChildPod<T, B>._(
    responder: () => [this],
    reducer: (e) => reducer(e.firstOrNull),
  );
}