SendPort class Null safety
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
- hashCode → int
A hash code for this send port that is consistent with the == operator.
- runtimeType → Type
A representation of the runtime type of the object.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
Object? message) → void
Sends an asynchronous
messagethrough this send port, to its corresponding
) → String
A string representation of this object. [...]
Object other) → bool
otheris a SendPort pointing to the same ReceivePort as this one.override