copyWith method
CourseThemeItem
copyWith({
- int? id,
- String? name,
- int? order,
- PublicationState? state,
- String? publishDate,
- String? publishedAt,
- 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,
);
}