Dart API Referencedart:coreimplKeyValuePair<K, V>

KeyValuePair<K, V> class

This class represents a pair of two objects, used by LinkedHashMap to store a {key, value} in a list.

class KeyValuePair<K, V> {
  KeyValuePair(this.key, this.value) {}

  final K key;
  V value;
}

Constructors

new KeyValuePair(K key, V value) #

KeyValuePair(this.key, this.value) {}

Properties

final K key #

final K key;

V value #

V value;