setMonth method

void setMonth(
  1. DateTime month
)

Programmatically changes the displayed month and notifies listeners.

Implementation

void setMonth(DateTime month) {
  _displayedMonth = DateTime(month.year, month.month);
  _monthlyProvider?.setMonth(_displayedMonth!);
  _weeklyProvider?.setSelectedMonth(_displayedMonth!);
  _horizontalProvider?.setSelectedMonth(_displayedMonth!);
  notifyListeners();
}