https://github.com/plugfox/plugfox_localstorage
Simple cross-platform universal String Key-Value local storage, works on mobile and the web. Has RAM caching. Great for small short values.
https://github.com/plugfox/plugfox_localstorage
Last synced: 7 months ago
JSON representation
Simple cross-platform universal String Key-Value local storage, works on mobile and the web. Has RAM caching. Great for small short values.
- Host: GitHub
- URL: https://github.com/plugfox/plugfox_localstorage
- Owner: PlugFox
- License: mit
- Created: 2019-09-29T20:01:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-29T21:42:34.000Z (over 6 years ago)
- Last Synced: 2025-10-02T03:34:40.837Z (7 months ago)
- Language: Dart
- Size: 61.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
FLUTTER FOR MOBILE AND WEB
---
# plugfox_localstorage
### Description
Simple cross-platform universal String Key-Value local storage, works on mobile and the web.
Has RAM caching. Great for small short values.
### Example usage:
```dart
import 'package:plugfox_localstorage/localstorage.dart'
Future main() async {
// Create an instance of the object (singleton)
final LocalStorage storage = LocalStorage();
// Wait for initialization
await storage.init();
// Set value
storage['sampleKey'] = 'sampleValue';
// Get value
print(storage['sampleKey']); // 'sampleValue'
// (optional) Close the storage - not necessary
await storage.close();
}
```
##### [![Flutter logo][]][flutter.dev]
[Flutter logo]: https://flutter.dev/assets/flutter-lockup-4cb0ee072ab312e59784d9fbf4fb7ad42688a7fdaea1270ccf6bbf4f34b7e03f.svg
[flutter.dev]: https://flutter.dev