isYesterday property

bool get isYesterday

Is this date yesterday?

Implementation

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