isYesterday property

bool get isYesterday

Implementation

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