findPackageConfig
PackageConfig? findPackageConfig(Folder folder)Discovers the package configuration for a Dart script.
This is a synchronous version of findPackageConfig.
See https://github.com/dart-lang/tools/issues/1536 for any progress on synchronous APIs in the package_config package.