toMap method

Map<TKey, TValue> toMap()

Converts collection of MapEntrys to map

Implementation

Map<TKey, TValue> toMap() {
  return Map.fromEntries(this);
}