copyWith method

CourseThemeItem copyWith({
  1. int? id,
  2. String? name,
  3. int? order,
  4. PublicationState? state,
  5. String? publishDate,
  6. String? publishedAt,
  7. List<LongreadItem>? longreads,
})

Implementation

CourseThemeItem copyWith({
  int? id,
  String? name,
  int? order,
  enums.PublicationState? state,
  String? publishDate,
  String? publishedAt,
  List<LongreadItem>? longreads,
}) {
  return CourseThemeItem(
    id: id ?? this.id,
    name: name ?? this.name,
    order: order ?? this.order,
    state: state ?? this.state,
    publishDate: publishDate ?? this.publishDate,
    publishedAt: publishedAt ?? this.publishedAt,
    longreads: longreads ?? this.longreads,
  );
}