isMarked method
Implementation
bool isMarked(DateTime date) {
final results = markedDates.firstWhere((element) => element.date == date,
orElse: () => MarkedDate(color: Colors.black, date: DateTime(0)));
return results.date.year == date.year;
}