PeerSend class final

What PeerWire.send is handed: a message and how it must travel.

One object, so a minor can hand a wire more — a channel, a priority, an expiry — without breaking an adapter written against 1.0.

Constructors

PeerSend({required Map<String, Object?> message, bool reliable = true})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → Map<String, Object?>
The message: JSON values only.
final
reliable → bool
Whether it must arrive, once and in order with the other reliable ones; false lets it be lost, late or out of order.
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