pubspec property
File
get
pubspec
Implementation
File get pubspec {
final file = _getPubspec(directory);
if (file != null) {
return file;
}
throw Exception('pubspec not found at ${directory.path}.');
}