ChatMessage constructor

ChatMessage({
  1. String? text,
  2. String? imageUrl,
  3. String? imagePath,
  4. String? audioUrl,
  5. String? audioPath,
  6. required bool isSender,
  7. DateTime? createdAt,
})

Implementation

ChatMessage({
  this.text,
  this.imageUrl,
  this.imagePath,
  this.audioUrl,
  this.audioPath,
  required this.isSender,
  this.createdAt,
});