ValueStream<T> class Null safety

Interface representing a stream that has a current or initial value as well.

See HStream, which provides the initial value at the start of the stream, and SyncStream, which keeps the value up-to-date

Implementers
Available Extensions

Constructors

ValueStream.empty()
factory
ValueStream.of(FutureOr<T?> first, [Stream<T>? after, String? debugName])
factory

Properties

after Stream<T>
read-only
debugName String?
read-only
future Future<T?>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isFirstResolved bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

get() FutureOr<T?>
map<R>(R mapper(T input)) ValueStream<R>
Basics of converting something over
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resolve([T? ifAbsent]) → T?
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

controller<X>(String debugLabel, {X? initialValue, bool isUnique = true}) ValueStreamController<X>
singleValue<X>({String? debugLabel, FutureOr<X>? initialValue}) ValueStream<X>