isYesterday method

bool isYesterday()

Implementation

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