copyWith method
Schedule
copyWith({
- Optional<
DateTime?> ? startTime, - Optional<
DateTime?> ? finishTime, - List<
WeekTimeInterval> ? weekTimeIntervals,
Implementation
Schedule copyWith({
Optional<DateTime?>? startTime,
Optional<DateTime?>? finishTime,
List<WeekTimeInterval>? weekTimeIntervals
}) {
return Schedule(
startTime: startTime != null ? startTime.value : this.startTime,
finishTime: finishTime != null ? finishTime.value : this.finishTime,
weekTimeIntervals: weekTimeIntervals ?? this.weekTimeIntervals
);
}