previous property

Year get previous

Returns the previous year.

Throws ArgumentError if called on Year(1), as years less than 1 are not supported.

Implementation

Year get previous => Year(value - 1);