fromPairs<K extends String, V> function

Map<K, V> fromPairs<K extends String, V>(
  1. List<MapEntry<K, V>> entries
)

Converts a list of key-value pairs to a Map

Implementation

Map<K, V> fromPairs<K extends String, V>(List<MapEntry<K, V>> entries) {
  return Map.fromEntries(entries);
}