completeInterval property

KeyValueInterval completeInterval

The interval within which no values were filtered out based on the filter's limit or validInterval.

Implementation

KeyValueInterval get completeInterval {
  var keys = this.keys;
  var filterInterval = filter.validInterval;
  if (filter.limit == null || keys.length < filter.limit!) {
    return filterInterval;
  }
  if (filter.limit == 0) return KeyValueInterval();

  if (filter.reversed) {
    return KeyValueInterval.fromPairs(
        _pairForKey(keys.first)!, filterInterval.end);
  } else {
    return KeyValueInterval.fromPairs(
        filterInterval.start, _pairForKey(keys.last)!);
  }
}