isExcludedDays static method

bool isExcludedDays(
  1. List<int> days,
  2. DateTime targetDate
)

Implementation

static bool isExcludedDays(List<int> days, DateTime targetDate) {
  for (int day in days) {
    if (day == targetDate.weekday) {
      return true;
    }
  }
  return false;
}