previousWeek method
void
previousWeek()
Goes back to the previous week.
Implementation
void previousWeek() {
_currentDate = _currentDate.subtract(const Duration(days: 7));
notifyListeners();
}
Goes back to the previous week.
void previousWeek() {
_currentDate = _currentDate.subtract(const Duration(days: 7));
notifyListeners();
}