nYearAgo static method

DateTime nYearAgo(
  1. int n
)

Implementation

static DateTime nYearAgo(int n) => DateTime(now().year - n);