EventBus constructor

EventBus({
  1. bool sync = false,
  2. int maxQueueSize = 1000,
})

Implementation

EventBus({bool sync = false, int maxQueueSize = 1000})
  : _controller = StreamController<OpenFeatureEvent>.broadcast(sync: sync),
    _maxQueueSize = maxQueueSize {
  _controller.stream.listen(_dispatchEvent);
}