isYesterday property

bool get isYesterday

Whether this DateTime falls on the day before today.

Implementation

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