mapFrom<K, V> function

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

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