concept spawnFunction() in category dart

appears as: spawnFunction()
Dart in Action

This is an excerpt from Manning's book Dart in Action.

To spawn a new isolate with an entry-point function, you need to import the dart:isolate library and use the spawnFunction() function, passing in the entry-point function name. Listing 15.1 shows a modified version of the analyzeFileList() function, which modifies your Directory Analysis script to get the file types and file sizes in two new isolates (FileTypes and FileSizes) by using spawnFunction(). The script doesn’t do anything useful yet: it creates two new isolates that print a message and exit immediately, the isolate equivalent of printing “hello world.”