previous method

void previous()

Goes to the previous month.

Implementation

void previous() {
  currentMonth = DateTime(currentMonth.year, currentMonth.month - 1);
}