isYesterday property

bool get isYesterday

Implementation

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