ManifestStore class final

Stores the manifest in two alternating slots.

Constructors

ManifestStore(SyncStorageDirectory directory)
Creates a store over directory.

Properties

directory → SyncStorageDirectory
Directory holding the slots.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadSync({bool allowTornSingleSlot = false}) → Manifest?
Loads the newest valid manifest, or null when the database is empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveSync(List<SegmentInfo> segments) → Manifest
Writes segments as the next generation into the alternating slot.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

slotNames → const List<String>
Names of the two slots, indexed by generation % 2.