copyWith method

Material copyWith({
  1. int? id,
  2. int? courseOffering,
  3. Value<String?> title = const Value.absent(),
  4. Value<String?> href = const Value.absent(),
})

Implementation

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