Message constructor

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

Implementation

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