DpkConfig class final

The contents of a workspace root's dpk.yaml.

Constructors

DpkConfig({required VersionConstraint version, DpkMode mode = DpkMode.global, bool sortPubspec = false, List<String>? workspace, String? cacheDir, String patchDir = 'patches', Catalog? catalog, Map<String, Script> scripts = const {}, List<ConfigWarning> warnings = const []})
const
DpkConfig.parse(ConfigReader reader)
factory

Properties

cacheDir → String?
The project cache directory, relative to the workspace root.
final
catalog → Catalog?
final
hashCode → int
The hash code for this object.
no setterinherited
mode → DpkMode
final
patchDir → String
The patch directory, relative to the workspace root.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scripts → Map<String, Script>
final
sortPubspec → bool
final
version → VersionConstraint
final
warnings → List<ConfigWarning>
final
workspace → List<String>?
Globs that select workspace packages.
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

parseVersion(ConfigReader reader) → VersionConstraint
Reads only the version constraint, so a version mismatch is reported before anything else in the file.

Constants

keys → const List<String>
legacyKeys → const Map<String, String>
Old key names that dpk get migrates.
packageKeys → const List<String>
Keys that a workspace package's own dpk.yaml may contain.