isMark method

bool isMark(
  1. DateTime dateTime,
  2. List<DateTime>? markDates
)

Implementation

bool isMark(DateTime dateTime, List<DateTime>? markDates) {
  if (markDates == null) return false;
  for (var element in markDates) {
    if (element.year == dateTime.year &&
        element.month == dateTime.month &&
        element.day == dateTime.day) {
      return true;
    }
  }
  return false;
}