PubSpec.fromString constructor

PubSpec.fromString(
  1. String yamlString
)

parses a pubspec from a yaml string.

Implementation

factory PubSpec.fromString(String yamlString) {
  final impl = PubSpec._internal()
    ..pubspec = pub.PubSpec.fromYamlString(yamlString);
  return impl;
}