isMarked method

bool isMarked(
  1. DateTime date
)

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