ProjectOperationProfileCodec class final

Reads and writes the declaration file of a project.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

declarationFile(Directory workspace) → File?
The declaration file of workspace, when the project has one.
decode(String text) → ProjectOperationProfile
Decodes a profile from the JSON text of a declaration.
encode(ProjectOperationProfile profile) → String
Encodes a profile into the JSON text of a declaration.
loadDeclaredProfile(Directory workspace) → ProjectOperationProfile?
Reads the declared profile of workspace.

Constants

declarationPath → const String
The declaration path, relative to the project root.
maxBudget → const Duration
The longest accepted command budget.
maxDeclarationBytes → const int
The largest declaration this codec reads.
maxIdLength → const int
The longest accepted profile or operation id.