mapBy<K> method

Map<K, V> mapBy<K>(
  1. Func1<V, K> getKey
)

Creates map from current iterable. Keys of the map are created by applying getKey function to the corresponding item of the list.

Implementation

Map<K, V> mapBy<K>(Func1<V, K> getKey) => _mapBy(getKey, this);