12 Commits

Author SHA1 Message Date
1566bd03fd Simplify Persist (#4131)
This changes the Persist syntax a bit to simplify its usage.

This removes the `with Persistable`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a new `persistJson` method for JSON-based state
persistence, simplifying how persistence is integrated and allowing for
custom encoding/decoding.
- Added a `key` getter to provide default storage keys for persisted
providers.
- Exposed `NotifierPersistX` and related persistence utilities for
broader use in persistence scenarios.

- **Refactor**
- Unified and updated type signatures for notifiers and persistence
methods, improving type safety and consistency across providers.
- Simplified persistence API usage by removing the need for mixins and
named parameters, favoring direct method calls with positional
arguments.

- **Documentation**
- Updated documentation and code examples to reflect the new persistence
API and usage patterns.

- **Tests**
- Enhanced test coverage to validate the new persistence approach and
updated type signatures.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-05-31 20:47:38 +02:00
f5f2fd3aa8 Generated 2025-04-30 20:41:52 +02:00
2eca60ca40 Farious refactors (#4081) 2025-04-24 21:34:15 +02:00
e7cbef0d9f NotifierBase => AnyNotifier 2025-04-23 19:00:36 +02:00
54f3d9a561 Simplify override logic (#4070) 2025-04-21 11:04:07 +02:00
2c09a1a4f7 Sync dev with master (#4068) 2025-04-20 17:58:08 +02:00
4c0b722c5d Update generated code 2024-10-18 19:05:25 +02:00
aab54f72a9 Update generated code 2024-10-18 18:38:37 +02:00
e81f93c34a Revert "Revert e0360815e8b28b2e2e9cd9e18fa4f291493acef9 (#3052)"
This reverts commit e89ab7de07625d5975abeb593a0e1a73a94bbcad.
2023-10-29 02:21:35 +01:00
e89ab7de07 Revert e0360815e8b28b2e2e9cd9e18fa4f291493acef9 (#3052) 2023-10-28 22:40:35 +02:00
e0360815e8 Use stable version of riverpod_generator in master branch (#3049) 2023-10-28 16:43:09 +02:00
dbf47a3953 Documentation update (#1618) (#1728) 2023-10-11 15:18:35 +02:00