isYesterday property

bool get isYesterday

Implementation

bool get isYesterday {
  return DateTime.now().addDays(-1).isSameDay(this);
}