isYesterday property

bool get isYesterday

Implementation

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