copyWith method
LinkMessage
copyWith({
- bool? isDeleted,
- bool? isDeletedForMe,
- bool? isEdited,
- bool? isForwarded,
- bool? isPinned,
- bool? isRemoved,
- bool clearReplyId = false,
- String? id,
- String? roomId,
- String? senderId,
- String? replyId,
- String? react,
- ChatValueTimestamp? createdAt,
- ChatValueTimestamp? editedAt,
- ChatValueTimestamp? updatedAt,
- MessageStatus? status,
- MessageExtra? extra,
- String? link,
override
Implementation
@override
LinkMessage copyWith({
bool? isDeleted,
bool? isDeletedForMe,
bool? isEdited,
bool? isForwarded,
bool? isPinned,
bool? isRemoved,
bool clearReplyId = false,
String? id,
String? roomId,
String? senderId,
String? replyId,
String? react,
ChatValueTimestamp? createdAt,
ChatValueTimestamp? editedAt,
ChatValueTimestamp? updatedAt,
MessageStatus? status,
MessageExtra? extra,
String? link,
}) {
return LinkMessage.from(
super.copyWith(
isDeleted: isDeleted,
isDeletedForMe: isDeletedForMe,
isEdited: isEdited,
isForwarded: isForwarded,
isPinned: isPinned,
isRemoved: isRemoved,
clearReplyId: clearReplyId,
id: id,
roomId: roomId,
senderId: senderId,
replyId: replyId,
react: react,
createdAt: createdAt,
editedAt: editedAt,
updatedAt: updatedAt,
status: status,
extra: extra,
),
link ?? this.link,
);
}