Message constructor

Message({
  1. required String id,
  2. required String channelId,
  3. required String creatorId,
  4. String? text,
  5. List<FileInfo>? media,
  6. FileInfo? audio,
  7. List<FileInfo>? attachment,
  8. MessageArticle? article,
  9. String? referMessageId,
  10. String? prevId,
  11. DateTime? createdAt,
  12. DateTime? updatedAt,
})

Implementation

Message({
  required this.id,
  required this.channelId,
  required this.creatorId,
  this.text,
  this.media,
  this.audio,
  this.attachment,
  this.article,
  this.referMessageId,
  this.prevId,
  this.createdAt,
  this.updatedAt,
});