nWeekAgo static method

DateTime nWeekAgo(
  1. int n
)

Implementation

static DateTime nWeekAgo(int n) => DateTime(now().year, now().month, now().day - (7 * n));