KeyValueInterval.fromPairs constructor

KeyValueInterval.fromPairs(
  1. Pair start,
  2. Pair end
)

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);
}