resolveFromYamlDocument static method

String? resolveFromYamlDocument(
  1. YamlDocument? document,
  2. List<String> key
)

Implementation

static String? resolveFromYamlDocument(
    YamlDocument? document, List<String> key) {
  if (document == null) return null;
  if (document.contents is! YamlMap) return null;
  YamlMap cursor = document.contents as YamlMap;
  return resolveFromYamlMap(key, cursor);
}