getAttributeValue function

Future getAttributeValue(
  1. String attribute
)

Implementation

Future<dynamic> getAttributeValue(String attribute) async {
  final yamlFile = await getYamlFile();
  if (yamlFile == null) return null;
  var yamlMap = loadYaml(yamlFile.readAsStringSync()) as YamlMap;
  return yamlMap[attribute];
}