mapToList<R> method
Creates a List with all elements of this Iterable
modified by toElement
.
The List is fixed-length if growable
is false.
Implementation
List<R> mapToList<R>(R Function(T e) toElement, {bool growable = false}) =>
map<R>(toElement).toList(growable: growable);