static_sharedpreferences 2.0.1 copy "static_sharedpreferences: ^2.0.1" to clipboard
static_sharedpreferences: ^2.0.1 copied to clipboard

Package for reading and writing simple key-value pairs. This wraps the shared_preferences plugin from the Flutter Team.

static_sharedpreferences #

Package for reading and writing simple key-value pairs. This wraps the shared_preferences plugin from the Flutter Team.

Getting Started #

You have to call initialize() before using any methods from this package. After the initialization process you are good to go to use any getters, setters or whatever method you need.

  import "package:static_sharedpreferences/static_sharedpreferences.dart" as sp;

  void main() {
    WidgetsFlutterBinding.ensureInitialized();

    sp.initialize().whenComplete((){
      print('Done with initialization!');
    });
  
    bool? test = sp.getBool("testBoolKey");
  }
0
likes
140
points
22
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Package for reading and writing simple key-value pairs. This wraps the shared_preferences plugin from the Flutter Team.

Repository (GitLab)

License

unknown (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on static_sharedpreferences