copyWith method

Media copyWith({
  1. String? date,
  2. String? dateGmt,
  3. String? guid,
  4. int? id,
  5. String? link,
  6. String? modified,
  7. String? modifiedGmt,
  8. String? slug,
  9. String? status,
  10. String? type,
  11. String? permalinkTemplate,
  12. String? generatedSlug,
  13. String? title,
  14. int? author,
  15. String? commentStatus,
  16. String? pingStatus,
  17. dynamic meta,
  18. String? template,
  19. String? altText,
  20. String? caption,
  21. String? description,
  22. String? mediaType,
  23. String? mimeType,
  24. Map<String, dynamic>? mediaDetails,
  25. int? post,
  26. String? sourceUrl,
})

Implementation

Media copyWith({
  String? date,
  String? dateGmt,
  String? guid,
  int? id,
  String? link,
  String? modified,
  String? modifiedGmt,
  String? slug,
  String? status,
  String? type,
  String? permalinkTemplate,
  String? generatedSlug,
  String? title,
  int? author,
  String? commentStatus,
  String? pingStatus,
  dynamic meta,
  String? template,
  String? altText,
  String? caption,
  String? description,
  String? mediaType,
  String? mimeType,
  Map<String, dynamic>? mediaDetails,
  int? post,
  String? sourceUrl,
}) {
  return Media(
    date: date ?? this.date,
    dateGmt: dateGmt ?? this.dateGmt,
    guid: guid ?? this.guid,
    id: id ?? this.id,
    link: link ?? this.link,
    modified: modified ?? this.modified,
    modifiedGmt: modifiedGmt ?? this.modifiedGmt,
    slug: slug ?? this.slug,
    status: status ?? this.status,
    type: type ?? this.type,
    permalinkTemplate: permalinkTemplate ?? this.permalinkTemplate,
    generatedSlug: generatedSlug ?? this.generatedSlug,
    title: title ?? this.title,
    author: author ?? this.author,
    commentStatus: commentStatus ?? this.commentStatus,
    pingStatus: pingStatus ?? this.pingStatus,
    meta: meta ?? this.meta,
    template: template ?? this.template,
    altText: altText ?? this.altText,
    caption: caption ?? this.caption,
    description: description ?? this.description,
    mediaType: mediaType ?? this.mediaType,
    mimeType: mimeType ?? this.mimeType,
    mediaDetails: mediaDetails ?? this.mediaDetails,
    post: post ?? this.post,
    sourceUrl: sourceUrl ?? this.sourceUrl,
  );
}