copyWith method
CourseOfferingsCompanion
copyWith({ - Value<int>? id,
- Value<DateTime?>? fetchedAt,
- Value<String?>? courseCode,
- Value<int>? semester,
- Value<String?>? number,
- Value<String>? nameZh,
- Value<String?>? nameEn,
- Value<double?>? credits,
- Value<int?>? hours,
- Value<int?>? phase,
- Value<CourseType?>? courseType,
- Value<String?>? status,
- Value<String?>? language,
- Value<int?>? enrolled,
- Value<int?>? withdrawn,
})
Implementation
CourseOfferingsCompanion copyWith({
Value<int>? id,
Value<DateTime?>? fetchedAt,
Value<String?>? courseCode,
Value<int>? semester,
Value<String?>? number,
Value<String>? nameZh,
Value<String?>? nameEn,
Value<double?>? credits,
Value<int?>? hours,
Value<int?>? phase,
Value<CourseType?>? courseType,
Value<String?>? status,
Value<String?>? language,
Value<String?>? remarks,
Value<int?>? enrolled,
Value<int?>? withdrawn,
}) {
return CourseOfferingsCompanion(
id: id ?? this.id,
fetchedAt: fetchedAt ?? this.fetchedAt,
courseCode: courseCode ?? this.courseCode,
semester: semester ?? this.semester,
number: number ?? this.number,
nameZh: nameZh ?? this.nameZh,
nameEn: nameEn ?? this.nameEn,
credits: credits ?? this.credits,
hours: hours ?? this.hours,
phase: phase ?? this.phase,
courseType: courseType ?? this.courseType,
status: status ?? this.status,
language: language ?? this.language,
remarks: remarks ?? this.remarks,
enrolled: enrolled ?? this.enrolled,
withdrawn: withdrawn ?? this.withdrawn,
);
}