sundayBefore property

DateTime sundayBefore

Implementation

DateTime get sundayBefore {
  DateTime sunday = this;
  while (sunday.weekday != DateTime.sunday) {
    sunday = sunday.subtractDays(1);
  }
  return sunday.startOfDay;
}