PackageLayout class

Directory layout for dealing with native assets.

Build hooks for native assets will be run from the context of another root package.

The directory layout follows pub's convention for caching: https://dart.dev/tools/pub/package-layout#project-specific-caching-for-tools

Constructors

PackageLayout.fromPackageConfig(PackageConfig packageConfig, Uri packageConfigUri)
factory

Properties

dartTool Uri
The .dart_tool directory is used to store built artifacts and caches.
latefinal
dartToolNativeAssetsBuilder Uri
The directory where package:native_assets_builder stores all persistent information.
latefinal
hashCode int
The hash code for this object.
no setterinherited
packageConfig → PackageConfig
Package config containing the information of where to foot the root Uris of other packages.
final
packageConfigUri Uri
final
rootPackageRoot Uri
The root folder of the current dart invocation root package.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packageRoot(String packageName) Uri
The root of package:$packageName.
packagesWithAssets(Hook hook) Future<List<Package>>
All packages in packageConfig with native assets.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromRootPackageRoot(Uri rootPackageRoot) Future<PackageLayout>