copyWith method

PlaylistItem copyWith({
  1. List<Source>? sources,
  2. String? image,
  3. String? title,
  4. String? adschedule,
  5. List<Track>? tracks,
  6. String? file,
  7. String? description,
})

Implementation

PlaylistItem copyWith({
  List<Source>? sources,
  String? image,
  String? title,
  String? adschedule,
  List<Track>? tracks,
  String? file,
  String? description,
}) =>
    PlaylistItem(
      sources: sources ?? this.sources,
      image: image ?? this.image,
      title: title ?? this.title,
      adschedule: adschedule ?? this.adschedule,
      tracks: tracks ?? this.tracks,
      file: file ?? this.file,
      description: description ?? this.description,
    );