FileManifest class
A content-addressed snapshot of a directory: a map of relative path to FileManifestEntry. The manifest's hash is the directory's SyncRef.
Constructors
-
FileManifest(Map<
String, FileManifestEntry> entries) -
FileManifest.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
entries
→ Map<
String, FileManifestEntry> -
Entries keyed by their forward-slash relative path.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sortedPaths
→ List<
String> -
Paths sorted lexicographically — the canonical ordering for hashing and
diffing.
no setter
Methods
-
hash(
) → SyncRef -
Deterministic SHA-256 over
"<path>\0<size>\0<hash>\n"lines in sorted path order. Excludes mtime so the result is reproducible.override -
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- empty → FileManifest
-
An empty manifest.
final