update method
Implementation
void update(CalendarState? state) {
// TODO(google): Disable CSS transitions here somehow
this.calendarState = state;
if (weeks != null && state != null) {
weeks.forEach((w) => w.update(state));
}
if (state == null || state.resolution != CalendarResolution.months) {
_classes = [];
} else {
_classes = state.selections
.where((selection) =>
(selection.start != null && containsDate(selection.start!)) ||
(selection.end != null && containsDate(selection.end!)))
.expand((selection) => ['boundary', 'boundary-${selection.id}'])
.toList();
}
}