copyWithWrapped method
LongreadItem
copyWithWrapped({
- Wrapped<
int> ? id, - Wrapped<
LongreadType> ? type, - Wrapped<
String> ? name, - Wrapped<
PublicationState> ? state, - Wrapped<
String?> ? publishDate, - Wrapped<
String?> ? publishedAt, - Wrapped<
List< ? exercises,ExerciseItem> >
Implementation
LongreadItem copyWithWrapped({
Wrapped<int>? id,
Wrapped<enums.LongreadType>? type,
Wrapped<String>? name,
Wrapped<enums.PublicationState>? state,
Wrapped<String?>? publishDate,
Wrapped<String?>? publishedAt,
Wrapped<List<ExerciseItem>>? exercises,
}) {
return LongreadItem(
id: (id != null ? id.value : this.id),
type: (type != null ? type.value : this.type),
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),
exercises: (exercises != null ? exercises.value : this.exercises),
);
}