copyWith method
PostEntity
copyWith({
- String? documentID,
- String? authorId,
- Object? timestamp,
- String? appId,
- String? feedId,
- String? postAppId,
- String? postPageId,
- Map<
String, dynamic> ? pageParameters, - String? html,
- String? description,
- int? likes,
- int? dislikes,
- int? accessibleByGroup,
- List<
String> ? accessibleByMembers, - List<
String> ? readAccess, - int? archived,
- String? externalLink,
- List<
MemberMediumContainerEntity> ? memberMedia,
Implementation
PostEntity copyWith({
String? documentID,
String? authorId,
Object? timestamp,
String? appId,
String? feedId,
String? postAppId,
String? postPageId,
Map<String, dynamic>? pageParameters,
String? html,
String? description,
int? likes,
int? dislikes,
int? accessibleByGroup,
List<String>? accessibleByMembers,
List<String>? readAccess,
int? archived,
String? externalLink,
List<MemberMediumContainerEntity>? memberMedia,
}) {
return PostEntity(
authorId: authorId ?? this.authorId,
timestamp: timestamp ?? this.timestamp,
appId: appId ?? this.appId,
feedId: feedId ?? this.feedId,
postAppId: postAppId ?? this.postAppId,
postPageId: postPageId ?? this.postPageId,
pageParameters: pageParameters ?? this.pageParameters,
html: html ?? this.html,
description: description ?? this.description,
likes: likes ?? this.likes,
dislikes: dislikes ?? this.dislikes,
accessibleByGroup: accessibleByGroup ?? this.accessibleByGroup,
accessibleByMembers: accessibleByMembers ?? this.accessibleByMembers,
readAccess: readAccess ?? this.readAccess,
archived: archived ?? this.archived,
externalLink: externalLink ?? this.externalLink,
memberMedia: memberMedia ?? this.memberMedia,
);
}