copyWith method
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? description,
- String? mediaType,
- String? mimeType,
- Map<
String, dynamic> ? mediaDetails, - int? post,
- 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,
);
}