copyWith method

  1. @override
VideoMessage copyWith({
  1. bool? isDeleted,
  2. bool? isDeletedForMe,
  3. bool? isEdited,
  4. bool? isForwarded,
  5. bool? isPinned,
  6. bool? isRemoved,
  7. bool clearReplyId = false,
  8. String? id,
  9. String? roomId,
  10. String? senderId,
  11. String? replyId,
  12. String? react,
  13. ChatValueTimestamp? createdAt,
  14. ChatValueTimestamp? editedAt,
  15. ChatValueTimestamp? updatedAt,
  16. MessageStatus? status,
  17. MessageExtra? extra,
  18. int? durationInSec,
  19. String? caption,
  20. String? thumbnail,
  21. 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,
  );
}