copyWith method

CalendarDay copyWith({
  1. DateTime? date,
  2. bool? isSelected,
  3. bool? isDisabled,
  4. bool? isToday,
})

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