copyWithCompanion method

CourseMaterial copyWithCompanion(
  1. MaterialsCompanion data
)

Implementation

CourseMaterial copyWithCompanion(MaterialsCompanion data) {
  return CourseMaterial(
    id: data.id.present ? data.id.value : this.id,
    courseOffering: data.courseOffering.present
        ? data.courseOffering.value
        : this.courseOffering,
    title: data.title.present ? data.title.value : this.title,
    href: data.href.present ? data.href.value : this.href,
  );
}