streaming_state library

A simple, yet powerful global state library for flutter projects.

Uses MapStreams from package:map_stream to hold state, which automatically pushes updates as streams

StreamingState extends StatefulWidget's State class, allowing a MapStream to attach. Whenever an update from the stream arrives the Widget rerenders.

StateStreamBuilder, similar to StreamBuilder, is a Widget that builds itself based on the current MapStream state.

Classes

MapStream<K, V>
A Map that supports listening to changes.
MapUpdate<K, V>
MapStream stream event.
StateStreamBuilder
Widget that builds itself based on the current MapStream state.
StreamingState<W extends StatefulWidget>
An extension of StatefulWidget's State class, allowing a MapStream to attach.

Exceptions / Errors

MapTypeException
Thrown when type safe MapStreams are updated with entry value types that conflict with exisiting type.