Pair<K, V> constructor

Pair<K, V>(
  1. K key,
  2. V value
)

Creates a Pair with the given key and value.

Implementation

Pair(this.key, this.value): fields = List.unmodifiable([key, value]);