PackageFileResolver.forRoot constructor
PackageFileResolver.forRoot()
Creates a resolver for the current working directory.
This factory method loads the package configuration from the current directory and creates a resolver that can handle URIs relative to it.
@return A new PackageFileResolver for the current directory @throws PackageConfigNotFound if the package configuration file is missing @throws PackageConfigParseError if the configuration file is invalid
Implementation
factory PackageFileResolver.forRoot() {
final String configUri = p.join(p.current, _packageConfigLocation);
return PackageFileResolverImpl.forRoot(configUri, rootPackageName);
}