IsolateBundleConfiguration class

Base configuration for creating an isolate bundle.

The IsolateBundleFactory will send this configuration to the isolate when it is spawned. The toCaller is used to send a SendPort back to the caller.

In the entry-point of the isolate the activateOnCurrentIsolate should be called to set up the SendPort and ReceivePort.

Constructors

IsolateBundleConfiguration(SendPort toCaller)
Base configuration for creating an isolate bundle.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toCaller SendPort
SendPort with which messages can be sent to the isolate which spawned the isolate.
final

Methods

activateOnCurrentIsolate<TFromCaller>(void messageHandler(TFromCaller message), void cancel(CancelMessage cancelMessage)) → void
Activates the current configuration on the current isolate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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