addIsolateInitializer method
Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.
Implementation
void addIsolateInitializer(FutureOr init()) {
isolateInitializers.add(InitializerWithParam.noParam(init));
}