copyWith method

PostItemModel copyWith({
  1. String? kind,
  2. String? id,
  3. String? blogId,
  4. DateTime? published,
  5. DateTime? updated,
  6. String? url,
  7. String? selfLink,
  8. String? title,
  9. String? content,
  10. Author? author,
  11. Replies? replies,
  12. String? etag,
  13. 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,
  );
}