isEndDateRadius method

bool isEndDateRadius(
  1. DateTime date
)

Implementation

bool isEndDateRadius(DateTime date) {
  if (endDate != null &&
      endDate!.day == date.day &&
      endDate!.month == date.month) {
    return true;
  } else if (date.weekday == 7) {
    return true;
  } else {
    return false;
  }
}