findPubspecYaml static method

File? findPubspecYaml(
  1. String projectPath
)

Find pubspec.yaml for Flutter projects

Implementation

static File? findPubspecYaml(String projectPath) {
  final file = File(path.join(projectPath, 'pubspec.yaml'));
  return file.existsSync() ? file : null;
}