copyWith method

Semester copyWith({
  1. int? id,
  2. int? year,
  3. int? term,
  4. Value<DateTime?> courseTableFetchedAt = const Value.absent(),
})

Implementation

Semester copyWith({
  int? id,
  int? year,
  int? term,
  Value<DateTime?> courseTableFetchedAt = const Value.absent(),
}) => Semester(
  id: id ?? this.id,
  year: year ?? this.year,
  term: term ?? this.term,
  courseTableFetchedAt: courseTableFetchedAt.present
      ? courseTableFetchedAt.value
      : this.courseTableFetchedAt,
);