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