EventBusIsolate constructor
EventBusIsolate({})
isModelBus applies to both sides of the bridge: the bus in the main
isolate and the bus inside the worker. A model bus keeps the node and the
current value of a topic after its last listener cancels.
Implementation
EventBusIsolate({
required this.onInit,
Object? initialData,
bool isModelBus = false,
ObservabilityConfig observability = ObservabilityConfig.disabled,
}) : _initialData = initialData,
_workerIsModelBus = isModelBus,
super(isModelBus, observability: observability) {
_requireIsolates('EventBusIsolate');
unawaited(_init());
}