get_storage 1.0.0 copy "get_storage: ^1.0.0" to clipboard
get_storage: ^1.0.0 copied to clipboard

outdated

A key-value storage extra-light and fast to Get framework

getstorage #

A key-value storage simple to Get framework

Getting Started #

Add to your pubspec:

dependencies:
  get:
  get_storage:

Instantiate your Container.

GetStorage getx = GetStorage();

And use it. To write information you must use write :

 getx.write('quote', 'GetX is the best');

To read values you use read:

print(getx.read('quote'));
// out: GetX is the best

To remove a key, you can use remove:

 getx.remove('quote');

To listen changes you can use listen:

 getx.listen((event) {print(event);});

If you subscribe to events, be sure to dispose them when using:

 getx.dispose();
GetStorage g = GetStorage('MyStorage');

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1619
likes
0
pub points
99%
popularity

Publisher

verified publishergetx.site

A key-value storage extra-light and fast to Get framework

Homepage

License

unknown (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on get_storage