ChatMessage constructor
const
ChatMessage({})
Creates a new chat message.
All parameters are required:
id: Unique identifier for the messagecontent: The text content of the messageisUser: Whether the message is from the user (true) or AI (false)timestamp: When the message was sent
Implementation
const ChatMessage({
required this.id,
required this.content,
required this.isUser,
required this.timestamp,
});