prevMonth method
Implementation
Future<void> prevMonth() async {
setState(() {
currentMonth--;
if (currentMonth < 1) {
currentYear--;
currentMonth = 12;
}
});
await fetchMonthEvents();
}
Future<void> prevMonth() async {
setState(() {
currentMonth--;
if (currentMonth < 1) {
currentYear--;
currentMonth = 12;
}
});
await fetchMonthEvents();
}