getPackageName function

String getPackageName(
  1. Directory projectDir
)

Get the package name from the pubspec.yaml file

Implementation

String getPackageName(Directory projectDir) => getPubspecYaml(projectDir).name;