occursInRange method

bool occursInRange(
  1. DateTime start,
  2. DateTime end
)

Checks if the event occurs within a given date range.

Implementation

bool occursInRange(DateTime start, DateTime end) {
  return startDate.isBefore(end) && endDate.isAfter(start);
}