setAccumulator<T> function
An Accumulator that adds all the values to a set.
Implementation
Set<T> setAccumulator<T>({required T value, Set<T>? previous}) =>
(previous ?? <T>{})..add(value);
An Accumulator that adds all the values to a set.
Set<T> setAccumulator<T>({required T value, Set<T>? previous}) =>
(previous ?? <T>{})..add(value);