Returns the YAML-formatted source, using name as a key, for writing into a pubspec 'dependencies' section.
name
String toYaml({required String name});