isInNextMonth property

bool isInNextMonth

Returns true if this occurs in previous month

Implementation

bool get isInNextMonth {
  final now = DateTime.now();
  final nextMonth = DateTime(now.year, now.month + 1, now.day);
  return month == nextMonth.month && year == nextMonth.year;
}