diff --git a/CHANGELOG.md b/CHANGELOG.md index 680497c..65a1d69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,3 +5,6 @@ # 2.3.0 - Remove,Contains key methods. # 3.0.0 - GetAll,Clear, Save object,getObject,OnConflict Strategy + + +# 5.0.6 - Read,Write optimization \ No newline at end of file diff --git a/bin/main.dart b/bin/main.dart index 87b6568..ee5e2fb 100644 --- a/bin/main.dart +++ b/bin/main.dart @@ -21,16 +21,15 @@ void main(List args) async { await preferences.setDouble('weight', 18.5); await preferences.setBool('isFree', false); - await preferences.contains('isFree'); //true + preferences.contains('isFree'); //true await preferences.remove('isFree'); - await preferences.contains('isFree'); //false + preferences.contains('isFree'); //false //Save writable object await preferences.saveObject(User(name: 'averageName', age: 12)); //get writable object - final object = - await preferences.getObject('averageName', (map) => User.fromJson(map)); + final object = preferences.getObject('averageName', (map) => User.fromJson(map)); print(object?.name); print(object?.age); diff --git a/pubspec.yaml b/pubspec.yaml index a12c6c1..942546b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: jt_preferences description: Json based key-value storage with AES encryption support. Supported data types are `int`, `double`, `bool`, `String` and `Writable object`. -version: 4.0.6 +version: 5.0.6 homepage: "https://github.com/xaldarof/jt_preferences" environment: