isEndsBetweenOther method
Implementation
bool isEndsBetweenOther(DateTimeRange other, Duration bufferTime) {
return end.add(bufferTime).isAfter(other.start) &&
end.add(bufferTime).isBefore(other.end);
}
bool isEndsBetweenOther(DateTimeRange other, Duration bufferTime) {
return end.add(bufferTime).isAfter(other.start) &&
end.add(bufferTime).isBefore(other.end);
}