getDownloadfile function
Implementation
Future<bool> getDownloadfile(fileName) async {
final tasks2 = await FlutterDownloader.loadTasksWithRawQuery(query: 'SELECT * FROM task WHERE file_name="' + fileName + '"');
if (tasks2!.first.status == DownloadTaskStatus.complete) {
return true;
} else {
return false;
}
}