isYesterday property

bool get isYesterday

True when this was yesterday.

Implementation

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