entryRecords property

Iterable<({TKey key, TValue value})> entryRecords

Returns an iterable that returns every key-value pair in this map as a named record.

The returned records will each have the key and value of each MapEntry mapped to the key and value fields of the record. This is for convenience when iterating on the entries of the map as the records can then be directly deconstructed.

Implementation

Iterable<({TKey key, TValue value})> get entryRecords {
  return entries.map((e) => (key: e.key, value: e.value));
}