dateHasEvent method

bool dateHasEvent(
  1. DateTime date
)

Implementation

bool dateHasEvent(DateTime date) {
  for (var event in periodEvents) {
    if (event.startDate.isSameDate(date)) {
      return true;
    }
  }
  return false;
}