HandledIsolateMessenger class
Communication channel for sending data between HandledIsolate instances.
Constructors
- HandledIsolateMessenger({SendPort? remotePort, void onInitialized()?})
- Communication channel for sending data between HandledIsolate instances.
Properties
- broadcast → Stream
-
Broadcast stream of
inPort
.no setter - connectionEstablished → bool
-
True after instance has traded
sendPort
s with another instance.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- inPort → ReceivePort
-
Port through which HandledIsolateMessenger receives data.
no setter
- outPort → SendPort
-
Port through which data is sent to the connected HandledIsolateMessenger
instance.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectTo(
SendPort sendPort) → void - Connect this instance to the given SendPort.
-
dispose(
) → void - Disposes of the HandledIsolateMessenger by closing the receiving port.
-
listen(
void onData(dynamic message), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription - Returns a StreamSubscription which returns messages from the connected HandledIsolate instance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
dynamic message) → void - Send a message to the connected HandledIsolate instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited