hasPubSpec property

bool hasPubSpec

Returns true if the project contains a pubspec.yaml.

Implementation

bool get hasPubSpec => exists(join(pathToProjectRoot, 'pubspec.yaml'));