onEach method

Map<K, V> onEach(
  1. void action(
    1. MapEntry<K, V> entry
    )
)

Performs the given action on each entry and returns the Map itself afterwards.

Implementation

Map<K, V> onEach(void Function(MapEntry<K, V> entry) action) {
  entries.onEach(action);

  return this;
}