endOfLastLocalWeek method

DateTime endOfLastLocalWeek([
  1. int? weekStart
])

Assumes this is in local timezone, but will preserve the timezone

Implementation

DateTime endOfLastLocalWeek([int? weekStart]) =>
    endOfLocalWeek(weekStart).subtract(const Duration(days: 7));