downloadAttachment method
下载附件 message
.
Implementation
Future<EMMessage> downloadAttachment(EMMessage message) async {
Map result = await _channel.invokeMethod(
EMSDKMethod.downloadAttachment, {"message": message.toJson()});
EMError.hasErrorFromResult(result);
return EMMessage.fromJson(result[EMSDKMethod.downloadAttachment]);
}