isYesterday property

bool isYesterday

Checks whether the date is yesterday

Implementation

bool get isYesterday => isSameDay(DateTime.now().previousDay);