copyWith method
Implementation
Score copyWith({
int? id,
int? user,
int? semester,
int? course,
Value<int?> courseOffering = const Value.absent(),
Value<int?> score = const Value.absent(),
Value<ScoreStatus?> status = const Value.absent(),
}) => Score(
id: id ?? this.id,
user: user ?? this.user,
semester: semester ?? this.semester,
course: course ?? this.course,
courseOffering: courseOffering.present
? courseOffering.value
: this.courseOffering,
score: score.present ? score.value : this.score,
status: status.present ? status.value : this.status,
);