Message constructor

const Message({
  1. required String messageId,
  2. required String senderId,
  3. required String targetId,
  4. required Uint8List payload,
  5. required int status,
  6. required int createdAt,
  7. required int ttl,
  8. String? signature,
  9. required int mediaType,
  10. String? mediaFileName,
  11. String? mediaMimeType,
  12. int? mediaFileSize,
  13. String? mediaHash,
  14. String? mediaLocalPath,
  15. required int mediaAvailability,
  16. Uint8List? mediaThumbnail,
})

Implementation

const Message({
  required this.messageId,
  required this.senderId,
  required this.targetId,
  required this.payload,
  required this.status,
  required this.createdAt,
  required this.ttl,
  this.signature,
  required this.mediaType,
  this.mediaFileName,
  this.mediaMimeType,
  this.mediaFileSize,
  this.mediaHash,
  this.mediaLocalPath,
  required this.mediaAvailability,
  this.mediaThumbnail,
});