findRoot static method

String? findRoot(
  1. String filePath
)

Finds the package root by searching upward from filePath for pubspec.yaml. Returns null if not found.

Implementation

static String? findRoot(String filePath) => _findPackageRoot(filePath);