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