DeltaChain class final

Append deltas against the materialized head while they pay; otherwise take a fresh snapshot. A delta "stops paying" when DeltaRatio fires, when maxChainDepth is reached, or after orEvery revisions since the last snapshot.

Inheritance

Constructors

DeltaChain({DeltaRatio rolloverWhen = const DeltaRatio(), int orEvery = defaultOrEvery, int maxChainDepth = defaultMaxDepth})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxChainDepth → int
Materialization-cost bound: at most this many deltas ever chain before a snapshot resets the walk.
final
orEvery → int
Hard snapshot cadence regardless of ratios.
final
rolloverWhen → DeltaRatio
The economics rule: a delta that costs more than this fraction of the full content takes a snapshot instead.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Manifest echo, so chains stay self-describing.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

defaultMaxDepth → const int
defaultOrEvery → const int