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