inRange method

bool inRange(
  1. DateTime date
)

Checks if a given date is within the range

date The date to check Returns true if the date is within the range, false otherwise

Implementation

bool inRange(DateTime date) => date.isAfter(start) && date.isBefore(end);