getJson method
dynamic
getJson()
Implementation
getJson() async {
String? text;
try {
Directory directory = await getApplicationDocumentsDirectory();
File file = File('${directory.path}/$fileName.txt');
text = await file.readAsString();
return text;
} catch (e) {
print('error');
}
}