readFile function
Reads the contents of the file located at filePath
as a String.
Implementation
Future<String?> readFile(String filePath) async {
try {
final localSystemFilePath = toLocalSystemPathFormat(filePath);
final file = File(localSystemFilePath);
final data = await file.readAsString();
return data;
} catch (_) {
return null;
}
}