lastDayOfYear property

DateTime lastDayOfYear

Returns the last day of this year

Implementation

DateTime get lastDayOfYear => isUtc ? DateTime.utc(year, 12, 31) : DateTime(year, 12, 31);