hydrated_notifier library

Classes

HydratedStateNotifier<State>
Specialized StateNotifier which handles initializing the state based on the persisted state. This allows state to be persisted across hot restarts as well as complete app restarts.
HydratedStorage
Implementation of Storage which uses package:hive to persist and retrieve state changes from the local device.
NIL
Type which represents objects that do not support json encoding
Storage
Interface which is used to persist and retrieve state changes.

Mixins

HydratedMixin<State>
A mixin which enables automatic state persistence for StateNotifier classes.

Exceptions / Errors

HydratedCyclicError
Reports that an object could not be serialized due to cyclic references. When the cycle is detected, a HydratedCyclicError is thrown.
HydratedUnsupportedError
Reports that an object could not be serialized.
StorageNotFound
Exception thrown if there was no HydratedStorage specified.