ReadTextAsync static method

Future<String> ReadTextAsync(
  1. String fileName
)

Implementation

static Future<String> ReadTextAsync(String fileName) async {
  String content = "";
  try {
    var file = await GetFile(fileName);
    if (file == null) return "";
    content = await file.readAsString();
  } catch (ex) {
    print(ex);
  }
  return content;
}