copyWith method
PostItemModel
copyWith(
{ - String? kind,
- String? id,
- String? blogId,
- DateTime? published,
- DateTime? updated,
- String? url,
- String? selfLink,
- String? title,
- String? content,
- Author? author,
- Replies? replies,
- String? etag,
- List<String>? labels,
})
Implementation
PostItemModel copyWith({
String? kind,
String? id,
String? blogId,
DateTime? published,
DateTime? updated,
String? url,
String? selfLink,
String? title,
String? content,
Author? author,
Replies? replies,
String? etag,
List<String>? labels,
}) {
return PostItemModel(
kind: kind ?? this.kind,
id: id ?? this.id,
blogId: blogId ?? this.blogId,
published: published ?? this.published,
updated: updated ?? this.updated,
url: url ?? this.url,
selfLink: selfLink ?? this.selfLink,
title: title ?? this.title,
content: content ?? this.content,
author: author ?? this.author,
replies: replies ?? this.replies,
etag: etag ?? this.etag,
labels: labels ?? this.labels,
);
}