isYesterday property
bool
get
isYesterday
Returns true if the date is yesterday, false otherwise.
Implementation
bool get isYesterday =>
isSameDay(DateTime.now().subtract(const Duration(days: 1)));