isYesterday method

bool isYesterday()

Returns true if the date is yesterday.

Implementation

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