copyWith method
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,
})
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,
);
}