ValueStream<T> constructor
As with StreamController.new.
Implementation
ValueStream(
{void Function()? onListen,
FutureOr<void> Function()? onCancel,
bool sync = false})
: _userOnListen = onListen,
_userOnCancel = onCancel,
_sync = sync {
_setController();
}