readLines static method

Future<List<String>> readLines(
  1. String path
)

Read file as lines

Implementation

static Future<List<String>> readLines(String path) async {
  final content = await readFile(path);
  return content.split('\n');
}