Background processes

Packages & plugins

Background processes

Have you ever wanted to execute Dart code in the
background—even if your app wasn’t the currently active app?
Perhaps you wanted to implement a process that watches the time,
or that catches camera movement.
In Flutter, you can execute Dart code in the background.

The mechanism for this feature involves setting up an isolate.
Isolates are Dart’s model for multithreading,
though an isolate differs from a conventional thread
in that it doesn’t share memory with the main program.
You’ll set up your isolate for background execution using
callbacks and a callback dispatcher.

Additionally, the WorkManager plugin enables persistent background processing 
that keeps tasks scheduled through app restarts and system reboots.