downloadAttachment method Null safety

Future<NIMResult<void>> downloadAttachment(
  1. NIMChatroomMessage message,
  2. [bool thumb = false]
)

Download the attachment of the chatroom message.

thumb (Only valid for image messages and video messages) Download the thumbnail or the original file, true: download the thumbnail, false: download the original file.

Implementation

Future<NIMResult<void>> downloadAttachment(NIMChatroomMessage message,
    [bool thumb = false]) {
  return _platform.downloadAttachment(message, thumb);
}