CustomMessage constructor

CustomMessage({
  1. String? subType,
  2. required Map<String, dynamic>? customData,
  3. List<String>? tags,
  4. int? id,
  5. String? muid,
  6. User? sender,
  7. AppEntity? receiver,
  8. required String receiverUid,
  9. required String type,
  10. required String receiverType,
  11. String? category,
  12. DateTime? sentAt,
  13. DateTime? deliveredAt,
  14. DateTime? readAt,
  15. Map<String, dynamic>? metadata,
  16. DateTime? readByMeAt,
  17. DateTime? deliveredToMeAt,
  18. DateTime? deletedAt,
  19. DateTime? editedAt,
  20. String? deletedBy,
  21. String? editedBy,
  22. DateTime? updatedAt,
  23. String? conversationId,
  24. int? parentMessageId,
  25. int? replyCount,
  26. int? unreadRepliesCount,
  27. List<User>? mentionedUsers,
  28. bool? hasMentionedMe,
  29. List<ReactionCount>? reactions,
  30. String? conversationText,
  31. bool? updateConversation,
  32. bool? sendNotification,
})

Constructs a new CustomMessage instance.

In addition to the required properties inherited from BaseMessage, this constructor requires customData. Other properties are optional.

Implementation

CustomMessage(
    {this.subType,
    required this.customData,
    this.tags,
    int? id,
    String? muid,
    User? sender,
    AppEntity? receiver,
    required String receiverUid,
    required String type,
    required String receiverType,
    String? category,
    DateTime? sentAt,
    DateTime? deliveredAt,
    DateTime? readAt,
    Map<String, dynamic>? metadata,
    DateTime? readByMeAt,
    DateTime? deliveredToMeAt,
    DateTime? deletedAt,
    DateTime? editedAt,
    String? deletedBy,
    String? editedBy,
    DateTime? updatedAt,
    String? conversationId,
    int? parentMessageId,
    int? replyCount,
    int? unreadRepliesCount,
    List<User>? mentionedUsers,
    bool? hasMentionedMe,
    List<ReactionCount>? reactions,
    this.conversationText,
    this.updateConversation,
    this.sendNotification})
    : super(
          id: id ?? 0,
          muid: muid ?? '',
          sender: sender,
          receiver: receiver,
          receiverUid: receiverUid,
          type: type,
          receiverType: receiverType,
          category: category ?? '',
          sentAt: sentAt,
          deliveredAt: deliveredAt,
          readAt: readAt,
          metadata: metadata,
          readByMeAt: readByMeAt,
          deliveredToMeAt: deliveredToMeAt,
          deletedAt: deletedAt,
          editedAt: editedAt,
          deletedBy: deletedBy,
          editedBy: editedBy,
          updatedAt: updatedAt,
          conversationId: conversationId,
          parentMessageId: parentMessageId ?? 0,
          replyCount: replyCount ?? 0,
          unreadRepliesCount: unreadRepliesCount ?? 0,
          mentionedUsers: mentionedUsers ?? [],
          reactions: reactions ?? [],
          hasMentionedMe: hasMentionedMe);