EventBusIsolate constructor

EventBusIsolate({
  1. required FutureOr<void> onInit(
    1. EventBus isolateBu,
    2. Object? initialData
    ),
  2. Object? initialData,
  3. bool isModelBus = false,
})

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,
}) : super(isModelBus) {
  _init(initialData: initialData, isModelBus: isModelBus);
}