isYesterday property

bool get isYesterday

Chech if this is yesterday (one day in the past)

Implementation

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