previousDay method
void
previousDay()
Goes back to the previous day.
Implementation
void previousDay() {
_currentDate = _currentDate.subtract(const Duration(days: 1));
notifyListeners();
}
Goes back to the previous day.
void previousDay() {
_currentDate = _currentDate.subtract(const Duration(days: 1));
notifyListeners();
}