PatchStatus class final

The inspected Patchwork state for a single dependency package.

Status combines the durable patch artifact, any open edit directory, generated applied output, and diagnostics. Paths are absolute when returned from the library; the CLI may render them relative to the project root.

Constructors

PatchStatus({required String package, required String version, required String editPath, required String patchPath, required String? appliedPath, required bool hasOpenEdit, required bool hasPatch, required bool needsApply, List<PatchProblem> problems = const []})
Creates a package status entry.
const

Properties

appliedPath → String?
The generated package path currently wired into pub, if any.
final
editPath → String
The edit directory path for this package version.
final
hashCode → int
The hash code for this object.
no setterinherited
hasOpenEdit → bool
Whether editPath exists and still needs to be committed or deleted.
final
hasPatch → bool
Whether patchPath exists and is tracked by Patchwork state.
final
needsApply → bool
Whether the committed patch should be applied or refreshed.
final
package → String
The dependency package represented by this status.
final
patchPath → String
The committed patch file path for this package version.
final
problems → List<PatchProblem>
Problems that make this package unsafe, stale, or inconsistent.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String
The package version currently associated with Patchwork state.
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