getIsInRange method

bool getIsInRange(
  1. DateTime date
)

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