DriftItem class
One difference between the forge's observed state and the VTC's projection of a repository.
Constructors
- DriftItem({required DriftItemType type, required RepoResource resource, ForgeAccount? account, String? observed, String? expected})
-
const
-
DriftItem.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- account → ForgeAccount?
-
Whose role differs, for the three role types.
final
- expected → String?
-
What the projection calls for, in the forge's own vocabulary. Absent when the
projection calls for nothing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- observed → String?
-
What the forge shows, in the forge's own vocabulary (a role name such as
maintain, a setting name). Absent when nothing is there.final - resource → ForgeHost
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → DriftItemType
-
roleAdded— someone holds a forge role the projection does not give them.roleRemoved— a projected role is missing.roleChanged— a projected role is present at another level.requiredCheckMissing— the verify-trust check is no longer required.protectionWeakened— branch protection or a ruleset is weaker than the projection in another way (force-push allowed, bypass actors added).bootstrapMissing— a bootstrap file or variable is gone.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