ValueStream<T>.seeded constructor
ValueStream<T>.seeded (})
Constructs a ValueStream with an initial value
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;
}