copyWith method
LongreadItem
copyWith({
- int? id,
- LongreadType? type,
- String? name,
- PublicationState? state,
- String? publishDate,
- String? publishedAt,
- List<
ExerciseItem> ? exercises,
Implementation
LongreadItem copyWith({
int? id,
enums.LongreadType? type,
String? name,
enums.PublicationState? state,
String? publishDate,
String? publishedAt,
List<ExerciseItem>? exercises,
}) {
return LongreadItem(
id: id ?? this.id,
type: type ?? this.type,
name: name ?? this.name,
state: state ?? this.state,
publishDate: publishDate ?? this.publishDate,
publishedAt: publishedAt ?? this.publishedAt,
exercises: exercises ?? this.exercises,
);
}