previousYear method
void
previousYear()
Goes back to the previous year.
Implementation
void previousYear() {
_currentDate = DateTime(_currentDate.year - 1, _currentDate.month, 1);
notifyListeners();
}
Goes back to the previous year.
void previousYear() {
_currentDate = DateTime(_currentDate.year - 1, _currentDate.month, 1);
notifyListeners();
}