isYesterday property
bool
get
isYesterday
Implementation
bool get isYesterday {
var now = DateTime.now();
var yesterday = now.subtract(Duration(days: 1));
return yesterday.year == year &&
yesterday.month == month &&
yesterday.day == day;
}