downloadAttachment method

Future<EMMessage> downloadAttachment(
  1. EMMessage message
)

下载附件 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]);
}