of static method

ProjectVersionFile? of(
  1. String projectDir
)

The version file of the project in projectDir, by the first project file present in the order Dart, Node, Python, Rust, Java; null when it has none of them.

Implementation

static ProjectVersionFile? of(String projectDir) {
  for (final file in _all) {
    if (File(p.join(projectDir, file.fileName)).existsSync()) return file;
  }
  return null;
}