loadYamlDocumentFromFile method

YamlDocument loadYamlDocumentFromFile(
  1. String yamlFilePath, {
  2. dynamic sourceUrl,
})

从文件中读取yaml, 转换为yamlDocument

Implementation

YamlDocument loadYamlDocumentFromFile(String yamlFilePath, {sourceUrl}) {
  var yamlDocument = new File(yamlFilePath);
  return loadYamlDocument(yamlDocument.readAsStringSync());
}