downloadGroupSharedFile method
Downloads the shared file of the group.
Note: The callback is only used for progress callback.
Param groupId
The group ID.
Param fileId
The ID of the shared file.
Param savePath
The local path of the shared file.
Throws A description of the exception. See ChatError.
Implementation
Future<void> downloadGroupSharedFile({
required String groupId,
required String fileId,
required String savePath,
}) async {
Map req = {'groupId': groupId, 'fileId': fileId, 'savePath': savePath};
Map result = await _channel.invokeMethod(
ChatMethodKeys.downloadGroupSharedFile, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}