NodeSnapshot class
A serialized node in a Snapshot (protocol.md § NodeSnapshot).
The optional key is a wire-stable NodeKey. It is omitted from the JSON
output when null, so pre-key peers and the existing conformance
fixtures round-trip unchanged.
Constructors
- NodeSnapshot(NodeId node, String typeTag, NodeState state, {NodeKey? key})
- NodeSnapshot.opaque(NodeId node, String typeTag, {NodeKey? key})
-
NodeSnapshot.payload(NodeId node, String typeTag, List<
NodeId> bytes, {NodeKey? key})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toWire(
) → Map< String, Object>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromWire(
Object? value) → NodeSnapshot