recordEntries property

Iterable<(K, V)> recordEntries

The record entries of this Map.

It allows for a stable hash code implementation without using MapEntry.

Example:

const planets = {1: 'Mercury', 2: 'Venus', 3: 'Earth', 4: 'Mars'};
planets.recordEntries.toList()
  == const [(1, 'Mercury'), (2, 'Venus'), (3, 'Earth'), (4, 'Mars')]

Implementation

Iterable<(K key, V value)> get recordEntries =>
    entries.map((e) => (e.key, e.value));