mapFrom<K, V> function

  1. @useResult
KtMap<K, V> mapFrom<K, V>([
  1. Map<K, V> map = const {}
])

Returns an immutable map, mapping only the specified key to the specified value.

Implementation

@useResult
KtMap<K, V> mapFrom<K, V>([Map<K, V> map = const {}]) => KtMap.from(map);