copyWith method
Implementation
CalendarThemeData copyWith({
Color? primaryColor,
Color? todayColor,
Color? selectedColor,
Color? backgroundColor,
}) {
return CalendarThemeData(
primaryColor: primaryColor ?? this.primaryColor,
todayColor: todayColor ?? this.todayColor,
selectedColor: selectedColor ?? this.selectedColor,
rangeColor: rangeColor,
weekendColor: weekendColor,
disabledColor: disabledColor,
holidayColor: holidayColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
surfaceColor: surfaceColor,
headerColor: headerColor,
dayTextStyle: dayTextStyle,
lunarTextStyle: lunarTextStyle,
headerTextStyle: headerTextStyle,
weekdayTextStyle: weekdayTextStyle,
cellRadius: cellRadius,
cellPadding: cellPadding,
);
}