ChatMessageWidget constructor

const ChatMessageWidget({
  1. Key? key,
  2. required ChatMessage message,
  3. bool isLast = false,
})

Creates a new chat message widget.

The message parameter is required and contains the message data. The isLast parameter indicates if this is the last message in the conversation (useful for spacing).

Implementation

const ChatMessageWidget({
  super.key,
  required this.message,
  this.isLast = false,
});