SyncRef class

The universal baseline reference used by the synchronization engine.

For git drives this is the commit SHA the local copy was materialized from; for directory drives it is the hash of the downloaded file manifest. A push is only allowed when the origin still points at the recorded baseline.

Constructors

SyncRef(RefKind kind, String value)
SyncRef.directory(String hash)
Convenience constructor for a directory manifest hash.
factory
SyncRef.fromJson(Map<String, dynamic> json)
factory
SyncRef.git(String sha)
Convenience constructor for a git commit SHA.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
kind RefKind
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override