EventBus.customController constructor

EventBus.customController(
  1. StreamController controller
)

Instead of using the default StreamController you can use this constructor to pass your own controller.

An example would be to use an RxDart Subject as the controller.

Implementation

EventBus.customController(StreamController controller)
    : _streamController = controller;