ValueStream<T>.seeded constructor
ValueStream<T>.seeded (})
Constructs a ValueStream with an initial value.
See ValueStream.new
Implementation
factory ValueStream.seeded(T initialValue,
{void Function()? onListen,
FutureOr<void> Function()? onCancel,
bool sync = false}) {
final res =
ValueStream<T>(onListen: onListen, onCancel: onCancel, sync: sync);
res.add(initialValue);
return res;
}