copyWith method

CalendarConfig copyWith({
  1. CalendarSystem? system,
  2. int? firstDayOfWeek,
  3. Locale? locale,
  4. CalendarViewType? viewType,
  5. bool? showWeekNumber,
  6. bool? showLunar,
  7. bool? showHolidays,
  8. bool? showSolarTerms,
  9. int? dayStartHour,
  10. int? dayEndHour,
  11. int? timeSlotMinutes,
  12. SelectionMode? selectionMode,
  13. bool? enableDrag,
  14. bool? enableResize,
  15. bool? enableCreate,
  16. DateTime? minDate,
  17. DateTime? maxDate,
  18. Set<DateTime>? disabledDates,
})

Implementation

CalendarConfig copyWith({
  CalendarSystem? system,
  int? firstDayOfWeek,
  Locale? locale,
  CalendarViewType? viewType,
  bool? showWeekNumber,
  bool? showLunar,
  bool? showHolidays,
  bool? showSolarTerms,
  int? dayStartHour,
  int? dayEndHour,
  int? timeSlotMinutes,
  SelectionMode? selectionMode,
  bool? enableDrag,
  bool? enableResize,
  bool? enableCreate,
  DateTime? minDate,
  DateTime? maxDate,
  Set<DateTime>? disabledDates,
}) {
  return CalendarConfig(
    system: system ?? this.system,
    firstDayOfWeek: firstDayOfWeek ?? this.firstDayOfWeek,
    locale: locale ?? this.locale,
    viewType: viewType ?? this.viewType,
    showWeekNumber: showWeekNumber ?? this.showWeekNumber,
    showLunar: showLunar ?? this.showLunar,
    showHolidays: showHolidays ?? this.showHolidays,
    showSolarTerms: showSolarTerms ?? this.showSolarTerms,
    dayStartHour: dayStartHour ?? this.dayStartHour,
    dayEndHour: dayEndHour ?? this.dayEndHour,
    timeSlotMinutes: timeSlotMinutes ?? this.timeSlotMinutes,
    selectionMode: selectionMode ?? this.selectionMode,
    enableDrag: enableDrag ?? this.enableDrag,
    enableResize: enableResize ?? this.enableResize,
    enableCreate: enableCreate ?? this.enableCreate,
    minDate: minDate ?? this.minDate,
    maxDate: maxDate ?? this.maxDate,
    disabledDates: disabledDates ?? this.disabledDates,
  );
}