copyWith method

DateSelection copyWith({
  1. DateTime? startDate,
  2. DateTime? endDate,
  3. HalfDayType? startHalf,
  4. 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,
  );
}