previous method
void
previous()
Goes to the previous month.
Implementation
void previous() {
currentMonth = DateTime(currentMonth.year, currentMonth.month - 1);
}
Goes to the previous month.
void previous() {
currentMonth = DateTime(currentMonth.year, currentMonth.month - 1);
}