query method

void query(
  1. T start,
  2. T end,
  3. void onOverlap(
    1. Interval<T> interval
    )
)

Queries all intervals that overlap with start, end. Zero-allocation recursive search using callback.

Implementation

void query(T start, T end, void Function(Interval<T>) onOverlap) {
  _queryNode(root, start, end, onOverlap);
}