downloadGroupSharedFile method

Future<void> downloadGroupSharedFile(
  1. {required String groupId,
  2. required String fileId,
  3. required String savePath}

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.


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 {
  } on ChatError catch (e) {
    throw e;