ChatMessageEvent class Null safety
The message status event class. During message delivery, the message ID will be changed from a local uuid to a global unique ID that is generated by the server to uniquely identify a message on all devices using the SDK. This API should be implemented in the chat page widget to listen for message status changes.
- hashCode → int
The hash code for this object.
- onError → (void Function(String msgId, ChatMessage msg, ChatError error)?)
Occurs when a message fails to be sent or downloaded.
- onProgress → (void Function(String msgId, int progress)?)
Occurs when there is a progress for message upload or download. This event is triggered when a message is being uploaded or downloaded.
- onSuccess → (void Function(String msgId, ChatMessage msg)?)
Occurs when a message is successfully sent or downloaded.
- runtimeType → Type
A representation of the runtime type of the object.