copyWith method

Schedule copyWith({
  1. int? id,
  2. int? courseOffering,
  3. DayOfWeek? dayOfWeek,
  4. Period? period,
})

Implementation

Schedule copyWith({
  int? id,
  int? courseOffering,
  DayOfWeek? dayOfWeek,
  Period? period,
}) => Schedule(
  id: id ?? this.id,
  courseOffering: courseOffering ?? this.courseOffering,
  dayOfWeek: dayOfWeek ?? this.dayOfWeek,
  period: period ?? this.period,
);