toMap<K> method
Implementation
Map<K, T> toMap<K>(K Function(T) findKey) {
final Map<K, T> map = <K, T>{
for (T element in this) findKey(element): element
};
return map;
}
Map<K, T> toMap<K>(K Function(T) findKey) {
final Map<K, T> map = <K, T>{
for (T element in this) findKey(element): element
};
return map;
}