CalendarHeaderProvider constructor

CalendarHeaderProvider(
  1. DateTime initialMonth
)

Creates a CalendarHeaderProvider initialized to initialMonth.

Only the year and month components of initialMonth are used.

Implementation

CalendarHeaderProvider(DateTime initialMonth) {
  _selectedMonth = DateTime(initialMonth.year, initialMonth.month);
}