mapToList<T> method
Null safety
- List<
T> destination, - EntryTransform<
K, V, T> f
Transforms entries to objects of type T with the transformer f,
and appends the result to the given destination.
Implementation
List<T> mapToList<T>(List<T> destination, EntryTransform<K, V, T> f) {
mapEntries(f).forEach((e) => destination.add(e));
return destination;
}