IsolateWorker class

Constructors

IsolateWorker({bool useLogger = false, String? tag})

Properties

events Stream<IsolateWorkerEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useLogger bool
final

Methods

kill() → void
Terminates the isolate and closes all associated resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the event subscription for this worker.
resume() → void
Resumes the event subscription for this worker.
sendMessage<T, R>(WorkerMessage<T, R> message, {Duration? timeout}) Future<R>
Sends a WorkerMessage to the isolate for execution and returns the result.
start() Future<void>
Starts the isolate and sets up communication.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited