copyWith method
VideoMessage
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,
- int? durationInSec,
- String? caption,
- String? thumbnail,
- String? url,
override
Implementation
@override
VideoMessage 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,
int? durationInSec,
String? caption,
String? thumbnail,
String? url,
}) {
return VideoMessage.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,
),
caption ?? this.caption,
durationInSec ?? this.durationInSec,
thumbnail ?? this.thumbnail,
url ?? this.url,
);
}