previousYear property

date get previousYear

Returns the previous year.

Implementation

date get previousYear => DateTime(year - 1, month, day);