readLogsToFile method
Read the Log-String from file
Implementation
Future<String> readLogsToFile() async {
try {
final file = await _localFile;
// Read the file
var contents = await file.readAsString();
return contents;
} catch (e) {
// If encountering an error, return error message
return "Unable to read file";
}
}