copyWith method

LibrivoxItem copyWith({
  1. String? id,
  2. String? title,
  3. String? author,
  4. String? releaseDate,
  5. String? description,
  6. String? language,
  7. String? coverUrl,
  8. List<String>? downloadLinks,
})

Implementation

LibrivoxItem copyWith({
  String? id,
  String? title,
  String? author,
  String? releaseDate,
  String? description,
  String? language,
  String? coverUrl,
  List<String>? downloadLinks,
}) {
  return LibrivoxItem(
    id: id ?? this.id,
    title: title ?? this.title,
    author: author ?? this.author,
    releaseDate: releaseDate ?? this.releaseDate,
    description: description ?? this.description,
    language: language ?? this.language,
    coverUrl: coverUrl ?? this.coverUrl,
    downloadLinks: downloadLinks ?? this.downloadLinks,
  );
}