Snapshot class

Snapshot utilities for capturing and restoring Pillar state.

Works with any object that exposes managed ReactiveNodes — typically called via Pillar extension methods.

final snap = Snapshot.capture(pillar);
// ... make changes ...
Snapshot.restore(pillar, snap);

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

captureFromNodes(List<ReactiveNode> nodes, {String? label}) PillarSnapshot
Capture all named TitanState Cores from the managed nodes.
diff(PillarSnapshot a, PillarSnapshot b) Map<String, (dynamic, dynamic)>
Compare two snapshots and return a map of changed values.
restoreToNodes(List<ReactiveNode> nodes, PillarSnapshot snapshot, {bool notify = false}) → void
Restore named TitanState Cores from a snapshot.