The root zone.
All isolate entry functions (main
or spawned functions) start running in the root zone (that is, Zone.current is identical to Zone.root when the entry function is called). If no custom zone is created, the rest of the program always runs in the root zone.
The root zone implements the default behavior of all zone operations. Many methods, like registerCallback do the bare minimum required of the function, and are only provided as a hook for custom zones. Others, like scheduleMicrotask, interact with the underlying system to implement the desired behavior.
static const Zone root = _rootZone
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-async/Zone/root-constant.html