isOverlappingWithBuffer method

bool isOverlappingWithBuffer(
  1. DateTimeRange other,
  2. int bufferTime
)

Implementation

bool isOverlappingWithBuffer(DateTimeRange other, int bufferTime) {
  return start.isBefore(other.end.add(Duration(minutes: bufferTime))) &&
      other.start.isBefore(end.add(Duration(minutes: bufferTime)));
}