SendPort class - dart:isolate library (original) (raw)

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.

Implemented types

Available extensions

Properties

hashCodeint

A hash code for this send port that is consistent with the == operator.

no setteroverride

nativePortint

Available on SendPort, provided by the NativePort extension

The native port of this SendPort.

no setter

runtimeTypeType

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

send(Object? message)→ void

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

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

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

override