copyWith method

MemberProfileEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? feedId,
  4. String? authorId,
  5. String? profile,
  6. String? profileBackgroundId,
  7. String? profileOverride,
  8. String? nameOverride,
  9. int? accessibleByGroup,
  10. List<String>? accessibleByMembers,
  11. List<String>? readAccess,
  12. List<MemberMediumContainerEntity>? memberMedia,
})

Implementation

MemberProfileEntity copyWith({
  String? documentID,
  String? appId,
  String? feedId,
  String? authorId,
  String? profile,
  String? profileBackgroundId,
  String? profileOverride,
  String? nameOverride,
  int? accessibleByGroup,
  List<String>? accessibleByMembers,
  List<String>? readAccess,
  List<MemberMediumContainerEntity>? memberMedia,
}) {
  return MemberProfileEntity(
    appId: appId ?? this.appId,
    feedId: feedId ?? this.feedId,
    authorId: authorId ?? this.authorId,
    profile: profile ?? this.profile,
    profileBackgroundId: profileBackgroundId ?? this.profileBackgroundId,
    profileOverride: profileOverride ?? this.profileOverride,
    nameOverride: nameOverride ?? this.nameOverride,
    accessibleByGroup: accessibleByGroup ?? this.accessibleByGroup,
    accessibleByMembers: accessibleByMembers ?? this.accessibleByMembers,
    readAccess: readAccess ?? this.readAccess,
    memberMedia: memberMedia ?? this.memberMedia,
  );
}