copyWith method
Implementation
CalendarDay copyWith({
DateTime? date,
bool? isSelected,
bool? isDisabled,
bool? isToday,
}) {
return CalendarDay(
date: date ?? this.date,
isSelected: isSelected ?? this.isSelected,
isDisabled: isDisabled ?? this.isDisabled,
isToday: isToday ?? this.isToday,
);
}