KeyValueInterval.fromPairs constructor
Creates a interval from key/value pairs.
Implementation
factory KeyValueInterval.fromPairs(Pair start, Pair end) {
assert(start.isMin || (start.key != null && start.value != null));
assert(end.isMax || (end.key != null && end.value != null));
return KeyValueInterval(start.key, start.value, end.key, end.value);
}