StreamWithValueExtensions<TInput> extension

We want StreamWithValue to be usable as an interface, rather than forcing users to inherit from it, since it has no state. Any implementations that can be useful are provided via this extension instead.

on

Properties

valueOrNull → TInput?
Returns null if loaded is false, otherwise returns value.
no setter
valueWithUpdates Stream<TInput>
Yields value if it's loaded, then relays to updates.
no setter

Methods

map<TOutput>(_Converter<TInput, TOutput> convert) StreamWithValue<TOutput>