An open API service indexing awesome lists of open source software.

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.

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