mapBy<K, V> function
Creates map from items
. Keys of the map are created by
applying getKey
function to the corresponding item of the list.
Implementation
Map<K, V> mapBy<K, V>(Func1<V, K> getKey, Iterable<V> items) =>
_mapBy(getKey, items);