next property

CalendarMonth? get next

Get the next month within this month's year, unless it's at the end of the year, in which case return null.

Based on CalendarWeek.next.

Implementation

CalendarMonth? get next {
  if (month < DateTime.december) {
    return addMonths(1);
  }
  return null;
}