endOfYear property

DateTime get endOfYear

Returns the last moment of this date's year.

Implementation

DateTime get endOfYear =>
    _calendarDate(year + 1, 1).subtract(const Duration(milliseconds: 1));