hydrated library

Classes

HydratedSubject<T>
A Subject that automatically persists its values and hydrates on creation.
KeyValueStore
A generic key-value persistence interface.
SharedPreferencesStore
An adapter for SharedPreferences persistence.

Typedefs

HydrateCallback<T> = T Function(String)
A callback for reconstructing an instance of a data class from a String.
PersistCallback<T> = String? Function(T)
A callback for encoding an instance of a data class into a String.

Exceptions / Errors

StoreError
An error encountered when persisting a value, or restoring it from persistence.