keyed<K> method

Map<K, V> keyed<K>(
  1. K keyOf(
    1. V value
    )
)

Implementation

Map<K, V> keyed<K>(K keyOf(V value)) => this?.map((v) => MapEntry<K, V>(keyOf(v), v)).toMap() ?? <K, V>{};