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 Function()? onListen, void Function()? onCancel, bool sync = false}) {
return LazyStreamController._(() => StreamController<T>(
onListen: onListen, onCancel: onCancel, sync: sync));
}