getOpenPath method

Future<String> getOpenPath()

Implementation

Future<String> getOpenPath() async {
  if(this is NetWorkFileX){
    final saveFile = await DdDownloadUtil.download((this as NetWorkFileX).url);
    return saveFile.path;
  }
  return map<String>(netWork: (value)  {
    return "";
  }, file: (value) {
    return value.file.path;
  }, path: (value) {
    return value.path;
  },);
}