isEndOfRange static method
Implementation
static isEndOfRange(CalendarDateTime? element, int year, int month, int day) {
if (element?.year != year) return false;
if (element?.toMonth == null) {
if (element?.toDay == null) return element?.day == day;
return element?.toDay == day;
} else if (element?.toMonth == month) {
if (element?.toDay == null) return element?.day == day;
return element?.toDay == day;
}
return false;
}