overlapsWith method

bool overlapsWith(
  1. ClosedRange other
)

Checks if the this range is within the boundaries of the another range

Implementation

bool overlapsWith(ClosedRange other) {
  return contains(other.start) || contains(other.end);
}