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