ReducerPod<T>.single constructor

ReducerPod<T>.single(
  1. ValueListenable<T> responder()
)

Implementation

factory ReducerPod.single(
  ValueListenable<T> Function() responder,
) {
  return ReducerPod(
    responder: () => [responder()],
    reducer: (values) => values.first as T,
  );
}