isInNextMonth property

bool get isInNextMonth

Checks if this falls in the month following the current 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;
}