isYesterday property

bool get isYesterday

Checks if the current date is yesterday

Implementation

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