Message constructor

const Message({
  1. required String text,
  2. bool isUser = false,
  3. Uint8List? imageBytes,
  4. Uint8List? audioBytes,
  5. MessageType type = MessageType.text,
  6. String? toolName,
})

Implementation

const Message({
  required this.text,
  this.isUser = false,
  this.imageBytes,
  this.audioBytes,
  this.type = MessageType.text,
  this.toolName,
});