prevMonth method

Future<void> prevMonth()

Implementation

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