PubspecYaml.loadFromYamlString constructor

PubspecYaml.loadFromYamlString(
  1. String content
)

Imports PubspecYaml from a YAML string

Implementation

factory PubspecYaml.loadFromYamlString(String content) {
  assert(content.trim().isNotEmpty, 'content must not be empty');
  return _loadFromYaml(content);
}