copyWith method
Implementation
Syllabus copyWith({
int? id,
int? courseOffering,
int? teacher,
Value<DateTime?> updatedAt = const Value.absent(),
Value<String?> objective = const Value.absent(),
Value<String?> weeklyPlan = const Value.absent(),
Value<String?> evaluation = const Value.absent(),
Value<String?> textbooks = const Value.absent(),
Value<String?> remarks = const Value.absent(),
}) => Syllabus(
id: id ?? this.id,
courseOffering: courseOffering ?? this.courseOffering,
teacher: teacher ?? this.teacher,
updatedAt: updatedAt.present ? updatedAt.value : this.updatedAt,
objective: objective.present ? objective.value : this.objective,
weeklyPlan: weeklyPlan.present ? weeklyPlan.value : this.weeklyPlan,
evaluation: evaluation.present ? evaluation.value : this.evaluation,
textbooks: textbooks.present ? textbooks.value : this.textbooks,
remarks: remarks.present ? remarks.value : this.remarks,
);