Pair constructor

const Pair(
  1. Comparable? key,
  2. Comparable? value
)

Creates a key/value pair.

Implementation

const Pair(this.key, this.value)
    : assert(key != null),
      assert(value != null),
      isMax = false,
      isMin = false;