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