sendMessage method
发送消息 message
.
Implementation
void sendMessage(EMMessage message,
{ onSuccess(),
onProgress(int progress),
onError(int errorCode, String desc)}){
Future<Map> result = _emChatManagerChannel.invokeMethod(
EMSDKMethod.sendMessage, message.toDataMap());
result.then((response){
if (response["success"]) {
if (onSuccess != null) onSuccess();
}
});
}