copyWith method
Implementation
CoursesCompanion copyWith({
Value<int>? id,
Value<DateTime?>? fetchedAt,
Value<String>? code,
Value<double>? credits,
Value<int>? hours,
Value<String?>? nameEn,
Value<String?>? nameZh,
Value<String?>? descriptionEn,
Value<String?>? descriptionZh,
}) {
return CoursesCompanion(
id: id ?? this.id,
fetchedAt: fetchedAt ?? this.fetchedAt,
code: code ?? this.code,
credits: credits ?? this.credits,
hours: hours ?? this.hours,
nameEn: nameEn ?? this.nameEn,
nameZh: nameZh ?? this.nameZh,
descriptionEn: descriptionEn ?? this.descriptionEn,
descriptionZh: descriptionZh ?? this.descriptionZh,
);
}