static_sharedpreferences 2.0.1
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
33%
popularity

Publisher

Unknown

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

BSD (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on static_sharedpreferences