onError property
final
Occurs when a message fails to be sent or downloaded.
Param msgId
The pre-sending message ID or the ID of the message that fails to be downloaded.
Param msg
The message that fails to be sent or downloaded.
Implementation
final void Function(String msgId, ChatMessage msg, ChatError error)? onError;