hydrated_bloc library

Classes

HydratedAesCipher
Default encryption algorithm. Uses AES256 CBC with PKCS7 padding.
HydratedBloc<Event, State>
Specialized Bloc which handles initializing the Bloc state based on the persisted state. This allows state to be persisted across hot restarts as well as complete app restarts.
HydratedCipher
Abstract cipher can be implemented to customize encryption.
HydratedCubit<State>
Specialized Cubit which handles initializing the Cubit state based on the persisted state. This allows state to be persisted across application restarts. [...]
HydratedStorage
Implementation of Storage which uses PathProvider and dart.io to persist and retrieve state changes from the local device.
Storage
Interface which is used to persist and retrieve state changes.

Mixins

HydratedMixin<State>
A mixin which enables automatic state persistence for Bloc and Cubit 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. The unsupportedObject field holds object that failed to be serialized. [...]
StorageNotFound
Exception thrown if there was no HydratedStorage specified. This is most likely due to forgetting to setup the HydratedStorage: [...]