Sync class

How the forge compares with the VTC's projection for one repository.

Constructors

Sync({required SyncState state, String? checkedAt, required List<DriftItem> drift})
const
Sync.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

checkedAt → String?
When the forge was last compared. Absent if never.
final
drift → List<DriftItem>
Outstanding drift. Empty unless state is drift.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → SyncState
inSync — the last comparison found no drift. drift — it found some, listed in drift. pending — a change has been sent to the forge and not yet confirmed. unchecked — nothing compares this repository (a manual-mode namespace).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → ForgeHost
A string representation of this object.
inherited

Operators

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