previousDay method

void previousDay()

Goes back to the previous day.

Implementation

void previousDay() {
  _currentDate = _currentDate.subtract(const Duration(days: 1));
  notifyListeners();
}