BackgroundIsolate class
Generic handle to a background worker isolate.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- messages → Stream
-
Messages received from the worker. The first message is always the
worker's own SendPort, enabling two-way communication.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Kills the isolate and closes the message channel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
void entryPoint(dynamic mainSendPortArg)) → Future< void> -
Spawns the worker isolate with
entryPoint. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → BackgroundIsolate - Opens the message channel synchronously; call start to spawn.