overlapsWith method
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);
}
Checks if the this range is within the boundaries of the another range
bool overlapsWith(ClosedRange other) {
return contains(other.start) || contains(other.end);
}