downloadElement method

Future<String> downloadElement(
  1. dynamic link,
  2. dynamic eltType,
  3. dynamic savePath
)

Fonction faisant appel aux fonctions de téléchargement en fonction du type de fichier passé en paramètre

Implementation

Future<String> downloadElement(link, eltType, savePath) async{
  Map<String,Function(String,String)> functionMap = _bindParser(this);
  return await functionMap[eltType]!.call(link,savePath);
}