startOfYear property

DateTime get startOfYear

January 1st of the year.

Implementation

DateTime get startOfYear => DateTime(year, 1, 1);