downloadVoiceFile method

Future<Map> downloadVoiceFile ({@required dynamic target, @required String messageId })

Implementation

Future<Map> downloadVoiceFile({
  @required dynamic target,
  @required String messageId,
}) async {
  Map param = target.toJson();
  param['messageId'] = messageId;
  Map resJson = await _channel.invokeMethod('downloadVoiceFile', param..removeWhere((key, value) => value == null));

  return {
    'messageId': resJson['messageId'],
    'filePath': resJson['filePath']
  };
}