toYaml method

  1. @override
String toYaml({
  1. required String name,
})
override

Returns the YAML-formatted source, using name as a key, for writing into a pubspec 'dependencies' section.

Implementation

@override
String toYaml({required String name}) => '''
$name:
  path: $_path
''';