123

completion

result

In Dart, you can offload computation to a worker isolate, 
often called a background worker. 
A common scenario spawns a simple worker isolate and 
returns the results in a message when the worker exits. 
As of Dart 2.19, you can use Isolate.run() to 
spawn an isolate and run computations:

void

main

()

async

// Read some data.

final

jsonData

await

Isolate

run

(()

jsonDecode

jsonString

as

Map

String

dynamic

>);

// Use that data.

print