jt_preferences 2.0.4 copy "jt_preferences: ^2.0.4" to clipboard
jt_preferences: ^2.0.4 copied to clipboard

Json key-value storage with AES encryption support.

Here is an example:

void main(List<String> args) async {
  JtPreferences.initialize("path/path");
  final preferences = JtPreferences.getInstance();
  await preferences.setString('token', '123');
  await preferences.setInt('age', 18);
  await preferences.setDouble('weight', 18.5);
  await preferences.setBool('isFree', false);

  await preferences.contains('isFree'); //true
  await preferences.remove('isFree');
  await preferences.contains('isFree'); //false

  preferences.listen(key: 'token').listen((event) {
    print("key $event updated");
  });

  preferences.listen().listen((event) {
    print("key $event updated");
  });
}

Open pub.dev

11
likes
0
points
89
downloads

Publisher

unverified uploader

Weekly Downloads

Json key-value storage with AES encryption support.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on jt_preferences