ChatMessageEvent class

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.

Constructors

ChatMessageEvent({void onSuccess(String msgId, ChatMessage msg)?, void onError(String msgId, ChatMessage msg, ChatError error)?, void onProgress(String msgId, int progress)?})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
onError → (void Function(String msgId, ChatMessage msg, ChatError error)?)
Occurs when a message fails to be sent or downloaded.
final
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.
final
onSuccess → (void Function(String msgId, ChatMessage msg)?)
Occurs when a message is successfully sent or downloaded.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited