readAsLinesSync method

List<String> readAsLinesSync(
  1. String path
)

Implementation

List<String> readAsLinesSync(String path) {
  final file = File(path);
  if (file.existsSync()) return file.readAsLinesSync();
  return [];
}