copyWithWrapped method

CourseSummaryItem copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? name,
  3. Wrapped<PublicationState>? state,
  4. Wrapped<String?>? publishDate,
  5. Wrapped<String?>? publishedAt,
  6. Wrapped<CourseSettings>? settings,
  7. Wrapped<int?>? subjectId,
  8. Wrapped<bool>? isArchived,
  9. Wrapped<CourseCategory>? category,
  10. Wrapped<CourseCategoryCover>? categoryCover,
})

Implementation

CourseSummaryItem copyWithWrapped({
  Wrapped<int>? id,
  Wrapped<String>? name,
  Wrapped<enums.PublicationState>? state,
  Wrapped<String?>? publishDate,
  Wrapped<String?>? publishedAt,
  Wrapped<CourseSettings>? settings,
  Wrapped<int?>? subjectId,
  Wrapped<bool>? isArchived,
  Wrapped<enums.CourseCategory>? category,
  Wrapped<enums.CourseCategoryCover>? categoryCover,
}) {
  return CourseSummaryItem(
    id: (id != null ? id.value : this.id),
    name: (name != null ? name.value : this.name),
    state: (state != null ? state.value : this.state),
    publishDate: (publishDate != null ? publishDate.value : this.publishDate),
    publishedAt: (publishedAt != null ? publishedAt.value : this.publishedAt),
    settings: (settings != null ? settings.value : this.settings),
    subjectId: (subjectId != null ? subjectId.value : this.subjectId),
    isArchived: (isArchived != null ? isArchived.value : this.isArchived),
    category: (category != null ? category.value : this.category),
    categoryCover: (categoryCover != null
        ? categoryCover.value
        : this.categoryCover),
  );
}