StreamControllerWrapper<T> constructor
const
StreamControllerWrapper<T> ({
- required CallbackWidgetBuilder<
StreamController< child,T> > - VoidCallback? onListen,
- VoidCallback? onCancel,
- bool sync = false,
- Key? key,
Creates a StreamControllerWrapper.
The child
parameter must not be null.
The sync
parameter controls whether the StreamController is synchronous.
The onListen
and onCancel
callbacks are invoked when the underlying
stream is listened to or canceled, respectively.
Implementation
const StreamControllerWrapper({
required this.child,
this.onListen,
this.onCancel,
this.sync = false,
super.key,
});