isInPreviousMonth property
bool
get
isInPreviousMonth
Implementation
bool get isInPreviousMonth {
final now = DateTime.now();
final previousMonth = DateTime(now.year, now.month - 1, now.day);
return month == previousMonth.month && year == previousMonth.year;
}