copyWithCompanion method

Material copyWithCompanion(
  1. MaterialsCompanion data
)

Implementation

Material copyWithCompanion(MaterialsCompanion data) {
  return Material(
    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,
  );
}