copyWith method

RssItem copyWith({
  1. String? title,
  2. String? description,
  3. String? link,
  4. List<RssCategory>? categories,
  5. String? guid,
  6. String? pubDate,
  7. String? author,
  8. String? comments,
  9. RssSource? source,
  10. RssContent? content,
  11. Media? media,
  12. RssEnclosure? enclosure,
  13. DublinCore? dc,
  14. RssItemItunes? itunes,
  15. RssItemPodcastIndex? podcastIndex,
})

Implementation

RssItem copyWith({
  String? title,
  String? description,
  String? link,
  List<RssCategory>? categories,
  String? guid,
  String? pubDate,
  String? author,
  String? comments,
  RssSource? source,
  RssContent? content,
  Media? media,
  RssEnclosure? enclosure,
  DublinCore? dc,
  RssItemItunes? itunes,
  RssItemPodcastIndex? podcastIndex,
}) {
  return RssItem(
    title: title ?? this.title,
    description: description ?? this.description,
    link: link ?? this.link,
    categories: categories ?? this.categories,
    guid: guid ?? this.guid,
    pubDate: pubDate ?? this.pubDate,
    author: author ?? this.author,
    comments: comments ?? this.comments,
    source: source ?? this.source,
    content: content ?? this.content,
    media: media ?? this.media,
    enclosure: enclosure ?? this.enclosure,
    dc: dc ?? this.dc,
    itunes: itunes ?? this.itunes,
    podcastIndex: podcastIndex ?? this.podcastIndex,
  );
}