isYesterday property
bool
get
isYesterday
Returns true if this date is yesterday.
Example: DateTime.now().isYesterday -> true.
Implementation
bool get isYesterday =>
formatYearMonthDay == (DateTime.now() - 1.day).formatYearMonthDay;