copyWith method

CoursesCompanion copyWith({
  1. Value<int>? id,
  2. Value<DateTime?>? fetchedAt,
  3. Value<String>? code,
  4. Value<double>? credits,
  5. Value<int>? hours,
  6. Value<String>? nameZh,
  7. Value<String?>? nameEn,
  8. Value<String?>? descriptionZh,
  9. Value<String?>? descriptionEn,
})

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,
  );
}