isDaySelected method
Implementation
CalendarMonthOverviewDaySelect isDaySelected(DateTime day) {
if (day.isSameDate(widget.startShowingDate) &&
day.isSameDate(widget.endShowingDate)) {
return CalendarMonthOverviewDaySelect.only;
} else if (day.isSameDate(widget.startShowingDate)) {
return CalendarMonthOverviewDaySelect.left;
} else if (day.isSameDate(widget.endShowingDate)) {
return CalendarMonthOverviewDaySelect.right;
} else if (day.isAfter(widget.startShowingDate) &&
day.isBefore(widget.endShowingDate)) {
return CalendarMonthOverviewDaySelect.middle;
}
return CalendarMonthOverviewDaySelect.not;
}