copyWith method

  1. @override
ChatMemberInfoModel copyWith({
  1. String? documentID,
  2. String? authorId,
  3. String? appId,
  4. String? roomId,
  5. DateTime? timestamp,
  6. ChatMemberInfoAccessibleByGroup? accessibleByGroup,
  7. List<String>? accessibleByMembers,
  8. List<String>? readAccess,
})
override

Implementation

@override
ChatMemberInfoModel copyWith({
  String? documentID,
  String? authorId,
  String? appId,
  String? roomId,
  DateTime? timestamp,
  ChatMemberInfoAccessibleByGroup? accessibleByGroup,
  List<String>? accessibleByMembers,
  List<String>? readAccess,
}) {
  return ChatMemberInfoModel(
    documentID: documentID ?? this.documentID,
    authorId: authorId ?? this.authorId,
    appId: appId ?? this.appId,
    roomId: roomId ?? this.roomId,
    timestamp: timestamp ?? this.timestamp,
    accessibleByGroup: accessibleByGroup ?? this.accessibleByGroup,
    accessibleByMembers: accessibleByMembers ?? this.accessibleByMembers,
    readAccess: readAccess ?? this.readAccess,
  );
}