ReposConfig.read constructor

ReposConfig.read(
  1. String yamlPath
)

Implementation

factory ReposConfig.read(String yamlPath) {
  final yamlString = readTextFile(yamlPath);
  final yaml = loadYamlDocument(yamlString, sourceUrl: Uri.parse(yamlPath));
  return ReposConfig.fromYaml(yaml.contents as YamlMap);
}