copyWith method

Schedule copyWith({
  1. int? id,
  2. int? courseOffering,
  3. DayOfWeek? dayOfWeek,
  4. Period? period,
  5. Value<int?> classroom = const Value.absent(),
})

Implementation

Schedule copyWith({
  int? id,
  int? courseOffering,
  DayOfWeek? dayOfWeek,
  Period? period,
  Value<int?> classroom = const Value.absent(),
}) => Schedule(
  id: id ?? this.id,
  courseOffering: courseOffering ?? this.courseOffering,
  dayOfWeek: dayOfWeek ?? this.dayOfWeek,
  period: period ?? this.period,
  classroom: classroom.present ? classroom.value : this.classroom,
);