getApplicationConfig method
Get application.yaml configuration
Implementation
Future<Map<String, dynamic>?> getApplicationConfig() async {
final configPath = p.join(projectRoot, 'application.yaml');
if (!await FileUtils.fileExists(configPath)) {
return null;
}
try {
final content = await FileUtils.readFile(configPath);
final config = loadYaml(content);
return _yamlToMap(config);
} catch (e) {
return null;
}
}