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
120
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitLab)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on static_sharedpreferences