set method
Adds a key-value association to the Map, or replaces the value associated with the key if the key was already present in the map.
Be careful not to call this method while iterating over the collection. @param {K} key The key or index for storing the value in the Map. @param {V} val The value to add to the Map, associated with the key. @return {Map.<K,V>} This modified Map.
Implementation
_i3.Map<K, V> set(
K key,
V val,
) =>
_i4.callMethod(
this,
'set',
[
key,
val,
],
);