addIsolateInitializer method

void addIsolateInitializer(
  1. FutureOr init()
)

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));
}