ReplyPreview constructor

const ReplyPreview({
  1. required String id,
  2. required String conversationId,
  3. required String senderId,
  4. String? text,
  5. bool textTruncated = false,
  6. required DateTime createdAt,
  7. int revision = 0,
  8. int mediaCount = 0,
})

textTruncated defaults to false and revision and mediaCount to 0, so a locally derived preview (a parent already in the loaded window) needs only the fields it has.

Implementation

const ReplyPreview({
  required this.id,
  required this.conversationId,
  required this.senderId,
  this.text,
  this.textTruncated = false,
  required this.createdAt,
  this.revision = 0,
  this.mediaCount = 0,
});