isDateMarked method

bool isDateMarked (
  1. dynamic date
)

Implementation

bool isDateMarked(date) {
  date = getDateOnly(date);
  bool _isDateMarked = false;
  if (widget.markedDates != null) {
    widget.markedDates.forEach((DateTime eachMarkedDate) {
      if (getDateOnly(eachMarkedDate) == date) {
        _isDateMarked = true;
      }
    });
  }
  return _isDateMarked;
}