Message constructor

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

Implementation

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