mapKeys<KK> method

Map<KK, V> mapKeys<KK>(
  1. KK mapper(
    1. K k,
    2. V v
    )
)

Implementation

Map<KK, V> mapKeys<KK>(KK mapper(K k, V v)) {
  return this.map((k, v) => MapEntry(mapper(k, v), v));
}