isInPastWeek property
bool
get
isInPastWeek
checks isInPastWeek
Implementation
bool get isInPastWeek {
if (this == null) return false;
final now = DateTime.now();
return now.dateOnly.previousWeek.isBefore(this!) && now.isAfter(this!);
}