static String readFile(String path) { final file = File(path); if (!file.existsSync()) { throw FileSystemException('File not found', path); } return file.readAsStringSync(); }