appLogZipFile function
Implementation
Future<String?> appLogZipFile() async {
final dir = logFile?.getDir();
if (dir?.existsSync() ?? false) {
String path = (await getAppDocumentsDirectory()).path;
String result = await compute(_zipLog, {
"path": path,
"dir": dir,
});
if (result.isNotEmpty) {
return result;
}
}
return null;
}