onSuccess property
final
Occurs when a message is successfully sent or downloaded.
Param msgId
The pre-sending message ID or the ID of the message that is successfully downloaded.
Param msg
The message that is successfully sent or downloaded.
Implementation
final void Function(String msgId, ChatMessage msg)? onSuccess;