nextYear method
void
nextYear()
Advances to the next year.
Implementation
void nextYear() {
_currentDate = DateTime(_currentDate.year + 1, _currentDate.month, 1);
notifyListeners();
}
Advances to the next year.
void nextYear() {
_currentDate = DateTime(_currentDate.year + 1, _currentDate.month, 1);
notifyListeners();
}