pref_dessert 1.0.1
pref_dessert: ^1.0.1 copied to clipboard
Package that allows you persist objects as shared preferences easily. Package name comes from Shared PREFerences DESerializer/SERializer of T (generic) class.
1.0.1 [2026-03-27] #
- README update
1.0.0 [2026-03-27] #
- BREAKING: migrated to Dart 3 / Flutter 3 (SDK constraint
^3.8.0) - BREAKING: removed
FuturePreferencesRepositoryandFutureSingleElementPreferencesRepository— use the sync variants withawait SharedPreferences.getInstance()instead - BREAKING:
remove(index)now returnsvoidinstead ofList<T>for consistency with other mutation methods - replaced
part/part ofwith regular imports - fixed bug where
remove(index)did not persist the removal to SharedPreferences - fixed
_updateto use direct list assignment instead ofremoveAt+insert - simplified
SingleElementPreferencesRepository.find()— removed redundant key lookup - removed dead
_keyfield inFutureSingleElementPreferencesRepositorythat shadowed the parent - modernized function type syntax (
bool Function(T)instead ofbool test(T)) - updated dependencies:
shared_preferences ^2.5.0,json_annotation ^4.11.0,json_serializable ^6.13.0 - added missing test for
remove(index)
0.8.0 [2022-02-18] #
- dependency update
0.7.0 [2021-11-30] #
- dependency update
0.6.0 [2021-03-30] #
- migration to null-safety and Dart 2.12
- dependency update
0.5.1 [2019-12-15] #
- removed deprecated
authortag frompubspec.yaml - added test coverage to travis build
- more tests
SharedPreferencesfields are nowfinal
0.5.0+1 [2019-12-11] #
- fixed some tests
0.5.0 [2019-12-11] #
- new method -
updateWhere
0.4.0+1 #
- code reformat
0.4.0 #
- dependency update
- issue #4 key feature is not working.
0.3.0 #
- shared_preferences dependency update
0.2.3 #
testversion update
0.2.2 #
Dartandshared_preferencesversion update
0.2.1 #
- added SingleElementPreferencesRepository is simplified version of PreferencesRepository which only stores one value
0.1.0 #
- added
removeWheremethod
0.0.10 #
- source code reformatted
0.0.9 #
- added
saveAllmethod
0.0.8 #
- fixed bug with shared preferences key
0.0.7 #
updatemethod bug-fix
0.0.6 #
- added example and more comments in code
0.0.5 #
- tests bug fix
0.0.4 #
- There are now two repository classes - 'normal' and
Futureversion - Added more methods to repository classes
DesSer<T>class for DESserializing and SERializing classes instead of two abstract methods inPreferencesRepository
0.0.2 #
- Better description with example
- Test for class serialization with json.
0.0.1 #
- First version