RunnerBuilder class Null safety

Allows for setting parameters used to initialize IsolateRunner and their worker instances

Constructors

RunnerBuilder.defaults()

Properties

autoCloseChildren bool
Whether to automatically close the underlying isolates then the calling isolate is destroyed. Default is true. If you set this to false, you must call Runner.close on your own.
read / write
debugName String?
Returns the next debugName for an IsolateRunner based on these settings. If a LoadBalancer is used, a number will be appended and incremented
read / write
debugNameBase String?
The base name for spawned isolates. If a LoadBalancer is used, then a number will be appended to this base value. see RunnerBuilder.debugName
read-only
defaultTimeout Duration?
The default timeout for commands sent to the IsolateRunner
read / write
failOnError bool
Whether this isolate or pool should fail when an error is encountered.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
isolateInitializers List<InitializerWithParam>
final
onIsolateCreated List<IsolateInitializer>
final
poolSize int
How many isolates to create in the pool. If this value is 1, then a single IsolateRunner will be created. Otherwise, a LoadBalancer will be created. Must be greater than 0
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addIsolateInitializer(FutureOr init()) → void
Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.
addIsolateInitializerWithDeferredParam<P>(RunInsideIsolateInitializer<P> init, P param()) → void
Adds an initializer - this is run on each isolate that's spawned, and contains any common setup. The parameter passed to the isolate must be a valid isolate message, but can be deferred until the time of isolate creation.
addIsolateInitializerWithParam<P>(RunInsideIsolateInitializer<P> init, P param) → void
Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.
addOnIsolateCreated(IsolateInitializer init) → void
Adds an initializer - this consumes the IsolateRunner and performs some action on it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withoutTimeout() → void
Removes any timeouts for IsolateRunner instances created from this builder

Operators

operator ==(Object other) bool
The equality operator.
inherited