downloadAttachment method

Future<void> downloadAttachment(
  1. ChatMessage message

Downloads the attachment files from the server.

You can call the method again if the attachment download fails.

Param message The message with the attachment that is to be downloaded.

Throws A description of the exception. See ChatError.


Future<void> downloadAttachment(ChatMessage message) async {
  Map result = await ChatChannel.invokeMethod(
      ChatMethodKeys.downloadAttachment, {"message": message.toJson()});
  try {
  } on ChatError catch (e) {
    throw e;