MemoryPeerMetadata class

A memory-based implementation of the PeerMetadata interface.

Implemented types

Constructors

MemoryPeerMetadata.new()
Creates a new memory-based peer metadata implementation.

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

get(PeerId p, String key) Future
Get / Put is a simple registry for other peer-related key/value pairs. If we find something we use often, it should become its own set of methods. This is a last resort.
override
getAll(PeerId peerId) Future<Map<String, dynamic>?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(PeerId p, String key, dynamic val) → void
Puts a value for a key and peer.
override
removePeer(PeerId id) Future<void>
Removes all values stored for a peer.
override
toString() String
A string representation of this object.
inherited

Operators

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