isEnableDate method

bool isEnableDate(
  1. DateTime date
)

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;
}