uniqueIndexBy<K> method

IMap<K, T> uniqueIndexBy<K>(
  1. K key(
    1. T value
    )
)

Implementation

IMap<K, T> uniqueIndexBy<K>(K Function(T value) key) =>
    IMap({for (final value in this) key(value): value});