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

A Dart package for easily using SharedPreferences. Provides access to the majority of SharedPreference's API.

A Dart package for easily using SharedPreferences.

Features #

Provides access to the majority of SharedPreference's API. Allows getting and setting of SharedPreferences values. Also has other miscellaneous API references to SP.

Getting started #

Add shared_prefs_manager to your dependencies list. Do this either on the CLI or manually pasting the dependency into your pubspec.yaml.

Usage #

See example.dart for a full example.

To set an int value:

setIntValue("myIntValue", 1121);

To get an int value:

getIntValue("myIntValue");

Additional information #

  • The documentation for the SharedPreferences package (as of 9/28/2022) is here.
  • If you find a bug, file an issue or send a merge request with the fix.
0
likes
140
pub points
20%
popularity

Publisher

verified publisherlok.ninja

A Dart package for easily using SharedPreferences. Provides access to the majority of SharedPreference's API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on shared_prefs_manager