getIsInRange method
Implementation
bool getIsInRange(DateTime date) {
if (startDate != null && endDate != null) {
if (date.isAfter(startDate!) && date.isBefore(endDate!)) {
return true;
} else {
return false;
}
} else {
return false;
}
}