PeerMetadata class abstract
PeerMetadata can handle values of any type. Serializing values is up to the implementation. Dynamic type introspection may not be supported, in which case explicitly enlisting types in the serializer may be required.
Refer to the docs of the underlying implementation for more information.
- Implementers
Constructors
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) → dynamic - 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.
-
getAll(
PeerId peerId) → Future< Map< String, dynamic> ?> -
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.
-
removePeer(
PeerId id) → Future< void> - Removes all values stored for a peer.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited