Sends messages to its ReceivePorts.

SendPorts are created from ReceivePorts. Any message sent through a SendPort is delivered to its corresponding ReceivePort. There might be many SendPorts for the same ReceivePort.

SendPorts can be transmitted to other isolates, and they preserve equality when sent.

Implements

Constructors

SendPort()

Properties

hashCode int

Returns an immutable hash code for this send port that is consistent with the == operator.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

Tests whether other is a SendPort pointing to the same ReceivePort as this one.

Methods

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
send(message) → void

Sends an asynchronous message through this send port, to its corresponding ReceivePort.

toString() String

Returns a string representation of this object.

inherited