isThisWeek property
bool
get
isThisWeek
Implementation
bool get isThisWeek {
var now = DateTime.now();
var week = now.subtract(Duration(days: 7));
return isAfter(week);
}
bool get isThisWeek {
var now = DateTime.now();
var week = now.subtract(Duration(days: 7));
return isAfter(week);
}