isEnableDate method
Implementation
bool isEnableDate(DateTime date) {
if (activeMaxDate != null) {
if (date.isAfter(activeMaxDate!)) {
return false;
}
}
if (activeMinDate != null) {
if (date.isBefore(activeMinDate!)) {
return false;
}
}
return true;
}