previousYear method

void previousYear()

Goes back to the previous year.

Implementation

void previousYear() {
  _currentDate = DateTime(_currentDate.year - 1, _currentDate.month, 1);
  notifyListeners();
}