BroadcastStreamController([void onStartListen(), void onAllCancel(), void onListen(dynamic callback(T value)), bool sync = false ])
Source
BroadcastStreamController([
void onStartListen(),
void onAllCancel(),
void onListen(callback(T value)),
bool sync = false
]) {
_controller = new StreamController<T>(sync: sync);
_stream = new CachedStreamWrapper(
_controller.stream
.asBroadcastStream(onListen: _onListen, onCancel: _onCancel),
onListen);
this.onStartListen = onStartListen;
this.onAllCancel = onAllCancel;
}