nextMonth method
dynamic
nextMonth()
Implementation
nextMonth() {
int year = scrollYearInt;
int month = scrollMonthInt;
if (month == 12) {
year += 1;
month = 1;
} else {
month += 1;
}
if (year > maxDateTime.year ||
(year == maxDateTime.year && month > maxDateTime.month)) return;
controller
.animateTo(offsetForDateTime(DateTime(year, month)),
duration: const Duration(milliseconds: 5), curve: Curves.linear)
.then((value) => notify());
}