previousWeek static method

DateTime previousWeek(
  1. DateTime w
)

Implementation

static DateTime previousWeek(DateTime w) {
  return w.subtract(Duration(days: 7));
}