isYesterday method
Check if the DateTime is yesterday
Implementation
bool isYesterday() {
final yesterday = DateTime.now().subtract(Duration(days: 1));
return year == yesterday.year &&
month == yesterday.month &&
day == yesterday.day;
}