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})
NodeSnapshot.sharedBlob(NodeId node, String typeTag, ShmBlobRef blob, {NodeKey? key})

Properties

hashCode int
The hash code for this object.
no setteroverride
key NodeKey?
final
node int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state NodeState
final
typeTag String
final

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