readLines function

Future<List<String>> readLines(
  1. File file, {
  2. Encoding encoding = utf8,
})

Read string content

Implementation

Future<List<String>> readLines(File file, {Encoding encoding = utf8}) async {
  var text = await readString(file, encoding: encoding);
  return LineSplitter.split(text).toList();
}