isYesterday property

bool get isYesterday

Implementation

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