get_storage 1.0.0
get_storage: ^1.0.0 copied to clipboard
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.