stream_with_value library
Classes
-
DataStreamWithValueBuilder<
T extends Object> -
PushStreamWithValue<
T> - StreamWithValue implementation that creates a Stream from subsequent calls to add. This way, value is always set to the latest value that has been added, regardless of whether the updates are listened to (in contrast to StreamWithLatestValue).
-
StreamBuilderWithValue<
T> -
StreamWithLatestValue<
T> - StreamWithValue implementation that wraps a Stream and keeps the latest value that was received from it. Beware that for "push" model, where a (typically broadcast) stream pushes data even when it's not listened to, the value will not be tracked if there are no listeners on updates. In such case PushStreamWithValue may be more appropriate.
-
StreamWithValue<
T> - The base encapsulation for all the convenience implementations.
Extensions
-
MapPerEvent
on Stream<
TInput> -
StreamWithValueExtensions
on StreamWithValue<
TInput> - 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.
Typedefs
-
DataBuilder<
T extends Object> = Widget Function(BuildContext context, T value) -
DataTrigger<
T> = void Function(T newValue) - NullValueBuilder = Widget Function(BuildContext context)