loadTextFile static method

Future<String?> loadTextFile(
  1. String url
)

Implementation

static Future<String?> loadTextFile(String url) async {
//    String dir =  (await getApplicationDocumentsDirectory()).path;
  String dir = "";
  return FileTools.downloadFile(url, "${dir}textfile.txt").then((f) {
    return f!.readAsString();
  });
}