copyWith method

ChatEntity copyWith({
  1. String? documentID,
  2. String? authorId,
  3. String? appId,
  4. String? roomId,
  5. Object? timestamp,
  6. String? saying,
  7. int? accessibleByGroup,
  8. List<String>? accessibleByMembers,
  9. List<String>? readAccess,
  10. 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,
  );
}