LocalWorkerClient class
Base class used to communicate with a LocalWorker.
Typically, derived classes should add proxy methods sending WorkerRequests to the worker.
- Implemented types
Constructors
- LocalWorkerClient(Channel channel)
-
Create a client for a LocalWorker. The
channel
passed to this client must have been obtained by calling Channel.share on the LocalWorker.channel.
Properties
- channel → Channel
-
The Channel to communicate with the LocalWorker.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
operations
→ Map<
int, CommandHandler> -
Local worker clients do not need an operations map.
final
- 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<
T> (int command, {List args = const [], CancellationToken? token, bool inspectRequest = false, bool inspectResponse = false}) → Future< T> - Sends a command to the LocalWorker.
-
stream<
T> (int command, {List args = const [], CancellationToken? token, bool inspectRequest = false, bool inspectResponse = false}) → Stream< T> - Sends a streaming command to the LocalWorker.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited