getYaml function

Future<Map> getYaml({
  1. String path = 'pubspec.yaml',
})

Implementation

Future<Map> getYaml({String path = 'pubspec.yaml'}) async {
  File f = File(path);
  String text = await f.readAsString();
  Map yaml = loadYaml(text);
  return yaml;
}