isYesterday property
bool
get
isYesterday
True when this was yesterday.
Implementation
bool get isYesterday => isSameDay(DateTime.now().subtract(const Duration(days: 1)));
True when this was yesterday.
bool get isYesterday => isSameDay(DateTime.now().subtract(const Duration(days: 1)));