prevMonth property

ETC prevMonth

Returning ETC instance of same year with a month previous to this.

Implementation

ETC get prevMonth => ETC(
    year: _date.month == 1 ? _date.year - 1 : _date.year,
    month: _date.month - 1 == 0 ? 13 : _date.month - 1);