copyWith method
Implementation
DatePickerState copyWith({
List<int>? availableDays,
DateTime? selectedDate,
}) {
return DatePickerState(
availableDays: availableDays ?? this.availableDays,
selectedDate: selectedDate ?? this.selectedDate,
);
}