EventHub constructor

EventHub({
  1. bool sync = false,
})

Create a EventHub

Implementation

EventHub({bool sync = false})
    : _streamController =
          StreamController<_EventHubEvent>.broadcast(sync: sync);