StreamControllerWithInitialValue<T> constructor
StreamControllerWithInitialValue<T> ({
- T? value,
- void onListen()?,
- void onCancel()?,
- bool sync = false,
Implementation
StreamControllerWithInitialValue({
this.value,
void Function()? onListen,
void Function()? onCancel,
bool sync = false,
}) {
_streamController = StreamController<T>(
onListen: onListen,
onCancel: onCancel,
sync: sync,
);
}