IsolateFlutter class
An Isolate Flutter.
You can create multiple isolate and manager it like start, pause, resume, stop.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Pause the current isolate
-
resume(
) → void - Resume the current isolate
-
start<
R> () → Future< R> -
Start the isolate and return the value returned by
callback
. -
stop(
) → void - Stop and dispose the current isolate
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create<
Q, R> (ComputeCallback< Q, R> callback, Q message, {String? debugLabel}) → Future<IsolateFlutter?> -
Create an isolate. The isolate will start up in a paused state. To start and get the return value, call
isolateFlutter.start()
. -
createAndStart<
Q, R> (ComputeCallback< Q, R> callback, Q message, {String? debugLabel}) → Future<R?> - Create and start an isolate.