WebReceivePort class final
Web stand-in for dart:isolate's ReceivePort, backed by NitroWebPorts.
Exposes the members the runtime's native-async and stream plumbing uses
(sendPort.nativePort, first, listen, close) so that logic ports
over from the native runtime nearly verbatim.
Constructors
Properties
- first → Future
-
Completes with the first message, mirroring
ReceivePort.first.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendPort → WebSendPort
-
Facade mirroring
ReceivePort.sendPort.no setter
Methods
-
close(
) → void -
listen(
void onData(dynamic raw)) → StreamSubscription -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited