saveable 0.1.0
saveable: ^0.1.0 copied to clipboard
Automatic variable-level state persistence.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2026-01-04 #
Added #
- Initial release
Saveable<T>class for automatic variable-level persistence- Auto-hydration from storage on creation
- Auto-persistence when value changes
- Debounced writes to prevent excessive storage operations
ValueListenableimplementation for easy UI bindingupdate()method for functional updatespersistNow()for immediate persistenceclear()andreset()methods
StateSavermixin for convenient factory creationsaveable<T>()factory method with automatic lifecycle trackingstoragePrefixfor key namespacingdisposeSaveables()for cleanupclearAllSaveables()for clearing all stored datapersistAllNow()for forcing immediate persistence
Storageinterface for custom storage backends- Bring-your-own-storage design
- Compatible with HydratedBloc, Hive, SharedPreferences, etc.
- Comprehensive documentation and examples
- Full test coverage