endOfYear property
DateTime
endOfYear
Return the end of the year for this date. The result will be in the local timezone.
Implementation
DateTime get endOfYear => clone.setYear(year, DateTime.december).endOfMonth;