matches method

bool matches(
  1. DateTime time
)

Implementation

bool matches(DateTime time) {
  if (seconds != null && !seconds!.contains(time.second)) return false;
  if (minutes != null && !minutes!.contains(time.minute)) return false;
  if (hours != null && !hours!.contains(time.hour)) return false;
  if (days != null && !days!.contains(time.day)) return false;
  if (months != null && !months!.contains(time.month)) return false;
  if (weekdays != null && !weekdays!.contains(time.weekday)) return false;
  return true;
}