Isolates

triangle-exclamation

Spawning isolates

circle-info

A single isolate running it's own event loop

circle-check
circle-exclamation

Working with ports

Passing objects into isolates

Creating a Two way connection between isolates

circle-info

In Flutter you can use "compute" method which handles a lot the things for you and it's much easier to implement

This section gives you a basic idea about how to work with isolates . But you can imagine how complicated it will get if you need to manage multiple isolates . You should write a separate class that will help deal with this efficiently . Or use some high level package from pub.dev

Last updated

Was this helpful?