nextYear method

dynamic nextYear()

Implementation

nextYear() {
  int year = scrollYearInt;
  year += 1;
  if (year > maxDateTime.year) return;
  int month = scrollMonthInt;
  if (year == maxDateTime.year && month > maxDateTime.month) {
    month = maxDateTime.month;
  }
  controller.jumpTo(offsetForDateTime(DateTime(year, month)));
}