copyWith method
Implementation
CourseMaterial copyWith({
int? id,
int? courseOffering,
Value<String?> title = const Value.absent(),
Value<String?> href = const Value.absent(),
Value<String?> iSchoolCourseId = const Value.absent(),
Value<bool?> streamable = 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,
iSchoolCourseId: iSchoolCourseId.present
? iSchoolCourseId.value
: this.iSchoolCourseId,
streamable: streamable.present ? streamable.value : this.streamable,
);