call method
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;
}
Returns the package name defined in the pubspec.yaml file.
String call() {
final pubspec = loadYaml(File('pubspec.yaml').readAsStringSync());
final packageName = pubspec['name'];
return packageName;
}