associateAndTransformBy<K, V> method
Map<K, V>
associateAndTransformBy<K, V>(
- K keySelector(
- E element
- V valueTransform(
- E element
Returns a Map containing the values provided by valueTransform
and
indexed by keySelector
functions applied to elements of the given
collection.
Implementation
Map<K, V> associateAndTransformBy<K, V>(
K Function(E element) keySelector,
V Function(E element) valueTransform,
) =>
Map.fromIterables(map(keySelector), map(valueTransform));