isBetween static method
Checks if the given DateTime is between the start and end DateTimes (exclusive).
Implementation
static bool isBetween(DateTime date, DateTime start, DateTime end) {
return date.isAfter(start) && date.isBefore(end);
}
Checks if the given DateTime is between the start and end DateTimes (exclusive).
static bool isBetween(DateTime date, DateTime start, DateTime end) {
return date.isAfter(start) && date.isBefore(end);
}