toMap<K, V> method
Converts this list to a Map<K, V> using key and value selectors.
Implementation
Map<K, V> toMap<K, V>(K Function(T) key, V Function(T) value) =>
{for (final e in this) key(e): value(e)};
Converts this list to a Map<K, V> using key and value selectors.
Map<K, V> toMap<K, V>(K Function(T) key, V Function(T) value) =>
{for (final e in this) key(e): value(e)};