previousYear method

DateTime previousYear(
  1. DateTime d
)

Returns same date in the previous year.

Implementation

DateTime previousYear(DateTime d) {
  return _date(d.isUtc, d.year - 1, d.month, d.day);
}