each method

Map<K, V> each(
  1. void func(
    1. KeyValuePair<K, V>
    )
)

Call the given function on each key/value pair in the collection. @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,V>} This Map itself @since 1.4

Implementation

_i3.Map<K, V> each(void Function(_i3.KeyValuePair<K, V>) func) =>
    _i4.callMethod(
      this,
      'each',
      [_i4.allowInterop(func)],
    );