flutter_persistent_value_notifier 1.0.20
flutter_persistent_value_notifier: ^1.0.20 copied to clipboard
Allow changes to `ValueNotifier.value` to persist across app restarts.
1.0.20 #
- Bugfixes for
PersistentValueNotifierMap
1.0.19 #
- Add missing
notifyListenersinPersistentValueNotifierMap
1.0.18 #
- Add export missing in previous release.
1.0.17 #
- Add
PersistentValueNotifierMap, which persists aMap<String, dynamic>to SharedPreferences as JSON.
1.0.16 #
- Allow for
notifyListenersto be called for JSON-encoded persistent value notifiers without first callingset value, so that you can modify the fields of an object and notify listeners without updating the object reference.
1.0.15 #
- Protect against
initPersistentValueNotifierbeing called twice.
1.0.14 #
- Allow
PersistentValueNotifierEnumto work with nullable enums.
1.0.13 #
- Export
PersistentValueNotifierJsonEncoded.
1.0.12 #
- For
PersistentValueNotifierJsonEncoded, notify listeners if the JSON representation of the value has changed, don't check the value reference for changes.
1.0.11 #
- Write through to
SharedPreferencesfromnotifyListeners.
1.0.10 #
- Handle
fromJsonthrowing an exception.
1.0.9 #
- Add
PersistentValueNotifierJsonEncodedfor persisting arbitrary JSON-serializable objects.
1.0.8 #
- Add support for
SharedPreferences.setPrefix, by passing aprefixparameter toinitPersistentValueNotifier.
1.0.7 #
- No funcitonal changes, only updates
README.md, since the version on pub.dev contained an error.
1.0.6 #
- Use
Enum.asNameMap(which doesn't throw an exception) instead ofEnum.byNameto get enum values from name.
1.0.5 #
- Rename
PersistentValueNotifierEnum.enumValueFromNametoPersistentValueNotifierEnum.valuesByName
1.0.4 #
- Require
initPersistentValueNotifierto be called beforePersistentValueNotifieris used (reverts the changes in 1.0.3). - Add
PersistentValueNotifierEnumto support enum value storage inSharedPreferences.
1.0.3 #
Allow PersistentValueNotifier to be used with initial value if SharedPreferences has not yet been initialized (in case the user forgets to use await with initPersistentValueNotifier).
1.0.2 #
Improve code based on suggestions from core Dart language team.
1.0.1 #
Update docs only (so that pub.dev docs get updated).
1.0.0 #
First pub.dev release.