isLastDayOfYear method
Checks if this DateTime is the last day of the year.
Implementation
bool isLastDayOfYear() {
return month == 12 && day == 31;
}
Checks if this DateTime is the last day of the year.
bool isLastDayOfYear() {
return month == 12 && day == 31;
}