copyWith method
Creates a copy of this view with the given fields replaced.
Implementation
CalendarView copyWith({
ValueGetter<int>? year,
ValueGetter<int>? month,
}) {
return CalendarView(
year == null ? this.year : year(),
month == null ? this.month : month(),
);
}