EventBusWidget.bindEventBus constructor

EventBusWidget.bindEventBus(
  1. EventBus eventBus,
  2. {@required Widget child}
)

Create widget with prebuilt EventBus

Could be useful when you have want to provide an existing EventBus to children or you are using custom stream controller in EventBus

Implementation

EventBusWidget.bindEventBus(this.eventBus, {@required Widget child})
    : super(key: ObjectKey(eventBus), child: child);