Sends messages to itsReceivePorts.
SendPorts are created fromReceivePorts. Any message sent throughaSendPort is delivered to its correspondingReceivePort. There might bemanySendPorts for the sameReceivePort.
SendPorts can be transmitted to other isolates, and they preserve equalitywhen sent.
- Implemented types
- Available extensions
Properties
- hashCode→int
- A hash code for this send port that is consistent with the == operator.no setteroverride
- nativePort→int
Available onSendPort, provided by theNativePort extension
The native port of thisSendPort.no setter- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
Methods
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- send(
Object?message)→ void - Sends an asynchronous
messagethrough this send port, to itscorrespondingReceivePort. - toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - Tests whether
otheris aSendPort pointing to the sameReceivePort as this one.override