onMessagesReceived property

(void Function(List<ChatMessage> messages)?) onMessagesReceived
final

Occurs when a message is received.

This callback is triggered to notify the user when a message such as texts or an image, video, voice, location, or file is received.

Implementation

final void Function(List<ChatMessage> messages)? onMessagesReceived;