map<S> method
Call the given function on each key-value pair in the collection and associate the key with the result of the function in a new Map.
Unlike Iterator#map, this returns a Map, not an Iterator. @expose @param {function(KeyValuePair.<K,V>):*} func The argument to the function will be an object with both "key" and "value" properties. This function must not modify the collection. @return {Map.<K,S>} a new Map with the same keys but values produced by the function
Implementation
_i3.Map<K, S> map<S>(S Function(_i3.KeyValuePair<K, V>) func) =>
_i4.callMethod(
this,
'map',
[_i4.allowInterop(func)],
);