SendPort2 class abstract
Sends messages to its ReceivePort2s.
SendPort2s are created from ReceivePort2s. Any message sent through a SendPort2 is delivered to its corresponding ReceivePort2. There might be many SendPort2s for the same ReceivePort2.
SendPort2s can be transmitted to other isolates, and they preserve equality when sent.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
Returns an immutable hash code for this send port that is
consistent with the == operator.
no setteroverride
- runtimeType → Type
-
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 correspondingReceivePort
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Tests whether
other
is a SendPort2 pointing to the same ReceivePort2 as this one.override