previousMonth property
Returns the previous month.
Implementation
date get previousMonth => DateTime(year, month - 1, day.clampMax(DateUtils.lastDayOfMonth(month - 1, year)));
Returns the previous month.
date get previousMonth => DateTime(year, month - 1, day.clampMax(DateUtils.lastDayOfMonth(month - 1, year)));