copyWith method

  1. @override
ImageMessage 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. String? caption,
  19. List<String>? urls,
})
override

Implementation

@override
ImageMessage 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? caption,
  List<String>? urls,
}) {
  return ImageMessage.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,
    urls ?? this.urls,
  );
}