KtMap<K, V>.from constructor

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

Implementation

factory KtMap.from([Map<K, V> map = const {}]) {
  if (map.isEmpty) return EmptyMap<K, V>();
  return DartMap(map);
}