listAccumulator<T> function
An Accumulator that adds all the values to a list.
Implementation
List<T> listAccumulator<T>({required T value, List<T>? previous}) =>
(previous ?? <T>[])..add(value);
An Accumulator that adds all the values to a list.
List<T> listAccumulator<T>({required T value, List<T>? previous}) =>
(previous ?? <T>[])..add(value);