toYamlString method

String toYamlString()

Produces YAML representation of the PubspecLock object

Implementation

String toYamlString() => '# Generated by pub'
    '\n# See https://dart.dev/tools/pub/glossary#lockfile'
    '\n${json2yaml(_toJson(this), yamlStyle: YamlStyle.pubspecLock)}';