ChatModal constructor

ChatModal({
  1. String? id,
  2. required String from,
  3. required String message,
  4. required String messageType,
  5. required Timestamp createdAt,
  6. ValueNotifier<int>? progress,
  7. String? thumbnail,
  8. int? durationInSeconds,
  9. AudioPlayer? audioPlayer,
  10. bool fromServer = true,
  11. bool isCached = false,
  12. required List deliveredTo,
  13. required List readBy,
  14. required Map reactions,
})

Implementation

ChatModal({
  this.id,
  required this.from,
  required this.message,
  required this.messageType,
  required this.createdAt,
  this.progress,
  this.thumbnail,
  this.durationInSeconds,
  this.audioPlayer,
  this.fromServer = true,
  this.isCached = false,
  required this.deliveredTo,
  required this.readBy,
  required this.reactions,


});