isYesterday property

bool get isYesterday

Returns true if this date is yesterday.

Implementation

bool get isYesterday =>
    isSameDay(DateTime.now().subtract(const Duration(days: 1)));