copyWith method
Implementation
CourseMaterial copyWith({
int? id,
int? courseOffering,
Value<String?> title = const Value.absent(),
Value<String?> href = const Value.absent(),
}) => CourseMaterial(
id: id ?? this.id,
courseOffering: courseOffering ?? this.courseOffering,
title: title.present ? title.value : this.title,
href: href.present ? href.value : this.href,
);