groupBy<K, V> method

Map<K, V> groupBy<K, V>(
  1. K keySelector(
    1. Any?
    ),
  2. V valueTransform(
    1. Any?
    )?
)

Implementation

Map<K, V> groupBy<K, V>(
    K Function(Any?) keySelector, V Function(Any?)? valueTransform) {
  return Map<K, V>.fromIterable(this,
      key: keySelector, value: valueTransform);
}