firstDayOfYear property

DateTime firstDayOfYear

Returns the first day of this year

Implementation

DateTime get firstDayOfYear => isUtc ? DateTime.utc(year, 1, 1) : DateTime(year, 1, 1);