redux_persist library
Classes
- FileStorage
- Storage engine to save to file.
-
JsonSerializer<
T> - MemoryStorage
- Storage engine to save to memory. Do not use in production, this doesn't persist to disk.
-
Persistor<
T> - Persistor class that saves/loads to/from disk.
- RawTransforms
- Holds onSave and onLoad raw transformations.
-
StateSerializer<
T> -
Serializer interface for turning state (
T
) into Uint8List, and back - StorageEngine
- Interface for storage engines
- StringSerializer
- Serializer for a String state
-
Transforms<
T> - Holds onSave and onLoad transformations.
Functions
-
stringToUint8List(
String? data) → Uint8List? -
uint8ListToString(
Uint8List? data) → String?
Typedefs
- RawTransformer = Uint8List Function(Uint8List? data)
- Transforms byte state data (immutable). Do not mutate original data. Could be ran with null or empty data.
-
Transformer<
T> = T Function(T? state) - Transforms state to new state. Do not mutate original state. Could be ran with null state.
Exceptions / Errors
- SerializationException
- Serialization failed.
- StorageException
- Saving/loading failed.
- TransformationException
- Transformation failed.