ValueStreamExtensions<T> extension

Extensions to access value and error easily.

on

Properties

error Object?

Available on ValueStream<T>, provided by the ValueStreamExtensions extension

Last emitted error, or null if no error added or value exists.
no setter
hasError bool

Available on ValueStream<T>, provided by the ValueStreamExtensions extension

A flag that turns true as soon as at an error event has been emitted.
no setter
hasValue bool

Available on ValueStream<T>, provided by the ValueStreamExtensions extension

A flag that turns true as soon as at least one event has been emitted.
no setter
requireError Object

Available on ValueStream<T>, provided by the ValueStreamExtensions extension

Last emitted error, or throws "Null check operator used on a null value" error if no error added or value exists.
no setter
requireValue → T

Available on ValueStream<T>, provided by the ValueStreamExtensions extension

Returns last emitted value, or throws "Null check operator used on a null value" error if there has been no emission yet.
no setter
value → T?

Available on ValueStream<T>, provided by the ValueStreamExtensions extension

Returns last emitted value, or null if there has been no emission yet.
no setter