saveable 0.1.0 copy "saveable: ^0.1.0" to clipboard
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
    • ValueListenable implementation for easy UI binding
    • update() method for functional updates
    • persistNow() for immediate persistence
    • clear() and reset() methods
  • StateSaver mixin for convenient factory creation
    • saveable<T>() factory method with automatic lifecycle tracking
    • storagePrefix for key namespacing
    • disposeSaveables() for cleanup
    • clearAllSaveables() for clearing all stored data
    • persistAllNow() for forcing immediate persistence
  • Storage interface for custom storage backends
    • Bring-your-own-storage design
    • Compatible with HydratedBloc, Hive, SharedPreferences, etc.
  • Comprehensive documentation and examples
  • Full test coverage
1
likes
150
points
104
downloads

Publisher

verified publisherspiercer.tech

Weekly Downloads

Automatic variable-level state persistence.

Repository (GitHub)
View/report issues

Topics

#state-management #persistence #storage #hydration

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on saveable