IndexMap<K, V>.from constructor

IndexMap<K, V>.from(
  1. Map<K, V> other
)

Creates an IndexMap from other.

Implementation

factory IndexMap.from(Map<K, V> other) {
  final map = IndexMap<K, V>();
  map.addAll(other);
  return map;
}