asKeys<R> method

Map<T, R> asKeys<R>(
  1. R f(
    1. T
    )
)

Returns a new Map where the values are used as keys in a map.

Implementation

Map<T, R> asKeys<R>(R Function(T) f) =>
    Map.fromEntries(map((e) => MapEntry(e, f(e))));