TextMessage constructor

TextMessage({
  1. required String text,
  2. List<String>? tags,
  3. int? id,
  4. String? muid,
  5. User? sender,
  6. AppEntity? receiver,
  7. required String receiverUid,
  8. required String type,
  9. required String receiverType,
  10. String? category,
  11. DateTime? sentAt,
  12. DateTime? deliveredAt,
  13. DateTime? readAt,
  14. Map<String, dynamic>? metadata,
  15. DateTime? readByMeAt,
  16. DateTime? deliveredToMeAt,
  17. DateTime? deletedAt,
  18. DateTime? editedAt,
  19. String? deletedBy,
  20. String? editedBy,
  21. DateTime? updatedAt,
  22. String? conversationId,
  23. int? parentMessageId,
  24. int? replyCount,
})

Implementation

TextMessage({
  required this.text,
  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,
}) : 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 ?? -1,
        replyCount: replyCount ?? 0,
      );