processExcludeListYaml function
Implementation
Map<String, List<String>?> processExcludeListYaml(String excludeListYaml) {
late YamlMap yamlData;
try {
var yaml = loadYaml(excludeListYaml);
yamlData = yaml;
} catch (e) {
throw Exception('problem in excludeList.yaml, read comments in example project example/config/excludeList.yaml');
}
var mapData = yamlData.toMap();
var result = mapData.map((key, value) => MapEntry(key, (value as String?)?.split(" ") ?? null));
return result;
}