copyWith method
Creates a copy of the AvailableTime instance and allows for non-destructive mutation.
Implementation
AvailableTime copyWith({
FixedList<String>? daysOfWeek,
Time? availableStartTime,
Time? availableEndTime,
}) =>
AvailableTime(
daysOfWeek: daysOfWeek ?? this.daysOfWeek,
availableStartTime: availableStartTime ?? this.availableStartTime,
availableEndTime: availableEndTime ?? this.availableEndTime,
);