copyWith method

BlogsModel copyWith({
  1. String? kind,
  2. String? id,
  3. String? name,
  4. String? description,
  5. DateTime? published,
  6. DateTime? updated,
  7. String? url,
  8. String? selfLink,
  9. String? error,
  10. BlogPost? posts,
  11. BlogPage? pages,
  12. BlogLocale? locale,
})

Implementation

BlogsModel copyWith({
  String? kind,
  String? id,
  String? name,
  String? description,
  DateTime? published,
  DateTime? updated,
  String? url,
  String? selfLink,
  String? error,
  BlogPost? posts,
  BlogPage? pages,
  BlogLocale? locale,
}) {
  return BlogsModel(
    kind: kind ?? this.kind,
    id: id ?? this.id,
    name: name ?? this.name,
    description: description ?? this.description,
    published: published ?? this.published,
    updated: updated ?? this.updated,
    url: url ?? this.url,
    selfLink: selfLink ?? this.selfLink,
    error: error ?? this.error,
    posts: posts ?? this.posts,
    pages: pages ?? this.pages,
    locale: locale ?? this.locale,
  );
}