isWithinRange method

bool isWithinRange(
  1. Date start,
  2. Date end
)

Check if the date is within start and end

Implementation

bool isWithinRange(Date start, Date end) => this >= start && this <= end;