isEndsBetweenOther method

bool isEndsBetweenOther(
  1. DateTimeRange other,
  2. Duration bufferTime
)

Implementation

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