copyWith method

CalendarThemeData copyWith({
  1. Color? primaryColor,
  2. Color? todayColor,
  3. Color? selectedColor,
  4. Color? backgroundColor,
})

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