Project class final

The workspace and config that commands work with.

Constructors

Project({required Workspace workspace, required String configPath, required DpkConfig config, required Map<String, Script> scripts, required List<ConfigWarning> warnings, String? cacheDirectoryOverride})

Properties

cacheDirectory → String
Absolute path of the project cache.
no setter
cacheDirectoryOverride → String?
final
config → DpkConfig
final
configPath → String
Absolute path of the dpk.yaml that configures the project.
final
hashCode → int
The hash code for this object.
no setterinherited
isProjectMode → bool
no setter
patchDirectory → String
Absolute path of the patch directory.
no setter
pubEnvironment → Map<String, String>
Environment variables for dart pub and for scripts, so pub uses the project cache in project mode.
no setter
rootPath → String
The directory that holds configPath.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scripts → Map<String, Script>
The root config's scripts, overridden by the current package's dpk.yaml scripts.
final
warnings → List<ConfigWarning>
final
workspace → Workspace
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

load(String start, {String? cacheDirectoryOverride}) → Project
Finds the project that contains start.