call method

String call()

Returns the package name defined in the pubspec.yaml file.

Implementation

String call() {
  final pubspec = loadYaml(File('pubspec.yaml').readAsStringSync());
  final packageName = pubspec['name'];
  return packageName;
}