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