startOfYear property

DateTime get startOfYear

Returns a DateTime representing the start of the year for this DateTime.

Implementation

DateTime get startOfYear => DateTime(year);