isFileDownloaded static method
Implementation
static Future<String?> isFileDownloaded(String fileName) async {
if (fileDownloadPath.isEmpty) {
await setDownloadFilePath();
}
String filePath = "$fileDownloadPath/$fileName";
if (File(filePath).existsSync() == true) {
return filePath;
} else {
return null;
}
}