copyWith method
ChatEntity
copyWith(
{ - String? documentID,
- String? authorId,
- String? appId,
- String? roomId,
- Object? timestamp,
- String? saying,
- int? accessibleByGroup,
- List<String>? accessibleByMembers,
- List<String>? readAccess,
- List<ChatMediumEntity>? chatMedia,
})
Implementation
ChatEntity copyWith({
String? documentID,
String? authorId,
String? appId,
String? roomId,
Object? timestamp,
String? saying,
int? accessibleByGroup,
List<String>? accessibleByMembers,
List<String>? readAccess,
List<ChatMediumEntity>? chatMedia,
}) {
return ChatEntity(
authorId: authorId ?? this.authorId,
appId: appId ?? this.appId,
roomId: roomId ?? this.roomId,
timestamp: timestamp ?? this.timestamp,
saying: saying ?? this.saying,
accessibleByGroup: accessibleByGroup ?? this.accessibleByGroup,
accessibleByMembers: accessibleByMembers ?? this.accessibleByMembers,
readAccess: readAccess ?? this.readAccess,
chatMedia: chatMedia ?? this.chatMedia,
);
}