IsolateThread class

Inheritance

Constructors

IsolateThread({required dynamic onMessage(ThreadResponse), required int coreNumber})

Properties

activeTaskIds List<String>
List of IDs of tasks currently being processed by the isolate.
getter/setter pairinherited
activeTasks int
Number of active tasks currently being processed by the isolate.
getter/setter pairinherited
coreNumber int
Number of processor cores available for the isolate to utilize.
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique id for this thread.
getter/setter pairinherited
isolate Isolate?
The isolate used for offloading image processing tasks.
getter/setter pair
isReady bool
Indicates whether the thread is ready for communication.
getter/setter pairinherited
onMessage → dynamic Function(ThreadResponse)
Callback function for handling messages received from the isolate.
finalinherited
readyState Completer
A completer to track when the thread is ready for communication.
getter/setter pairinherited
receivePort ReceivePort
The port used to receive messages from the isolate.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendPort SendPort
The port used to send messages to the isolate.
getter/setter pair

Methods

destroy() → void
Destroys the thread and cleans up any resources.
override
destroyActiveTasks(String ignoreTaskId) → void
Destroys all active tasks in the thread, except the task with the given ignoreTaskId.
override
init() → void
Initializes the thread.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(ThreadRequest data) → void
Sends a ThreadRequest to the thread for processing.
override
toString() String
A string representation of this object.
inherited

Operators

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