IndexMap<K extends dynamic, V>.of constructor

IndexMap<K extends dynamic, V>.of(
  1. List<K> keys,
  2. Iterable<V> values
)

constructors pass original keys, do not derive from Map.keys

Implementation

// a new values buffer list is allocated for a new map

// values enfoce List to indcate matched length
IndexMap.of(List<K> keys, Iterable<V> values) : this._(keys, List<V>.of(values, growable: false));