hasPubSpec property
bool
get
hasPubSpec
Returns true if the project contains a pubspec.yaml. @Throwing(ArgumentError)
Implementation
bool get hasPubSpec => exists(join(pathToProjectRoot, 'pubspec.yaml'));