copyWith method

  1. @override
MemberProfileModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? feedId,
  4. String? authorId,
  5. String? profile,
  6. MemberMediumModel? profileBackground,
  7. String? profileOverride,
  8. String? nameOverride,
  9. MemberProfileAccessibleByGroup? accessibleByGroup,
  10. List<String>? accessibleByMembers,
  11. List<String>? readAccess,
  12. List<MemberMediumContainerModel>? memberMedia,
})
override

Implementation

@override
MemberProfileModel copyWith({
  String? documentID,
  String? appId,
  String? feedId,
  String? authorId,
  String? profile,
  MemberMediumModel? profileBackground,
  String? profileOverride,
  String? nameOverride,
  MemberProfileAccessibleByGroup? accessibleByGroup,
  List<String>? accessibleByMembers,
  List<String>? readAccess,
  List<MemberMediumContainerModel>? memberMedia,
}) {
  return MemberProfileModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    feedId: feedId ?? this.feedId,
    authorId: authorId ?? this.authorId,
    profile: profile ?? this.profile,
    profileBackground: profileBackground ?? this.profileBackground,
    profileOverride: profileOverride ?? this.profileOverride,
    nameOverride: nameOverride ?? this.nameOverride,
    accessibleByGroup: accessibleByGroup ?? this.accessibleByGroup,
    accessibleByMembers: accessibleByMembers ?? this.accessibleByMembers,
    readAccess: readAccess ?? this.readAccess,
    memberMedia: memberMedia ?? this.memberMedia,
  );
}