locked_shared_preferences 0.0.1 copy "locked_shared_preferences: ^0.0.1" to clipboard
locked_shared_preferences: ^0.0.1 copied to clipboard

Wraps platform-specific persistent storage for simple data (NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.). Data may be persisted to disk asynchronously, and there is no guarante [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add locked_shared_preferences

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  locked_shared_preferences: ^0.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:locked_shared_preferences/locked_shared_preferences.dart';
1
likes
120
points
8
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Wraps platform-specific persistent storage for simple data (NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.). Data may be persisted to disk asynchronously, and there is no guarantee that writes will be persisted to disk after returning, so this plugin must not be used for storing critical data.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter, shared_preferences, synchronized

More

Packages that depend on locked_shared_preferences