PeerMessage class final

A message as a PeerWire.listenFrom listener hears it: what arrived, and who sent it.

One object, so a minor can hand a listener more — when it arrived, over which channel — without breaking a listener written against 1.0. One per delivered message, heard by every listener.

Constructors

PeerMessage({required int from, required Map<String, Object?> message})
const

Properties

from → int
The slot of the machine that sent it.
final
hashCode → int
The hash code for this object.
no setterinherited
message → Map<String, Object?>
The message.
final
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