LazyStreamController<T>.broadcast constructor
LazyStreamController<T>.broadcast ({
- void onListen()?,
- void onCancel()?,
- bool sync = false,
Creates a new LazyStreamController that will be a broadcast controller.
Implementation
factory LazyStreamController.broadcast(
{void onListen()?, void onCancel()?, bool sync = false}) {
return LazyStreamController._(() => StreamController<T>.broadcast(
onListen: onListen, onCancel: onCancel, sync: sync));
}