copyWith method
DateSelection
copyWith({
- DateTime? startDate,
- DateTime? endDate,
- HalfDayType? startHalf,
- HalfDayType? endHalf,
Implementation
DateSelection copyWith({
DateTime? startDate,
DateTime? endDate,
HalfDayType? startHalf,
HalfDayType? endHalf,
}) {
return DateSelection(
startDate: startDate ?? this.startDate,
endDate: endDate ?? this.endDate,
startHalf: startHalf ?? this.startHalf,
endHalf: endHalf ?? this.endHalf,
);
}