toList method
Eagerly construct a list of CalendarMonth instances corresponding to this MonthRange.
The first entry will have the same month and year as startDate. All
entries will have the specified state and startingWeekday.
Implementation
List<CalendarMonth> toList(CalendarState state, int startingWeekday) {
var startMonth = CalendarMonth(start.year, start.month,
state: state, startingWeekday: startingWeekday);
return List.generate(length, (i) => startMonth.addMonths(i));
}