entryTuples property

Iterable<Tuple2<TKey, TValue>> entryTuples

Returns an iterable that returns every key-value pair in this map as a two-dimensional Tuple2.

The returned tuples will each have the key and value of each MapEntry mapped to the item0 and item1 fields of the tuple. This is for convenience when iterating on the entries of the map in a setting where working with tuples is desired.

Implementation

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