copyWith method
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,
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,
);
}