copyWith method

CalendarView copyWith({
  1. ValueGetter<int>? year,
  2. ValueGetter<int>? month,
})

Implementation

CalendarView copyWith({
  ValueGetter<int>? year,
  ValueGetter<int>? month,
}) {
  return CalendarView(
    year == null ? this.year : year(),
    month == null ? this.month : month(),
  );
}