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