PackageAssetReader constructor

PackageAssetReader(
  1. PackageConfig _packageConfig,
  2. [String? _rootPackage]
)

Wrap a PackageConfig to identify where files are located.

To use a normal PackageConfig use Isolate.packageConfig and loadPackageConfigUri:

new PackageAssetReader(
  await loadPackageConfigUri(await Isolate.packageConfig));

Implementation

PackageAssetReader(this._packageConfig, [this._rootPackage]);