toList method

List<Pair<K, V>> toList()

Returns a list of map entries

Implementation

List<Pair<K, V>> toList() {
  return mapEntries((e) => Pair<K, V>(e.key, e.value)).toList();
}