copyWith method

PostEntity copyWith({
  1. String? documentID,
  2. String? authorId,
  3. Object? timestamp,
  4. String? appId,
  5. String? feedId,
  6. String? postAppId,
  7. String? postPageId,
  8. Map<String, dynamic>? pageParameters,
  9. String? html,
  10. String? description,
  11. int? likes,
  12. int? dislikes,
  13. int? accessibleByGroup,
  14. List<String>? accessibleByMembers,
  15. List<String>? readAccess,
  16. int? archived,
  17. String? externalLink,
  18. 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,
  );
}