SendPort class

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

Constructors

SendPort()

Properties

hashCodeint
read-only, override
A hash code for this send port that is consistent with the == operator.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
send(Object? message) → void
Sends an asynchronous message through this send port, to its corresponding ReceivePort. [...]
toString() → String
inherited
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
override
Tests whether other is a SendPort pointing to the same ReceivePort as this one.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-isolate/SendPort-class.html