plugfox_localstorage 0.1.1 plugfox_localstorage: ^0.1.1 copied to clipboard
Simple cross-platform universal String Key-Value local storage, works on mobile and the web. Has RAM caching. Great for small short values.
plugfox_localstorage #
FLUTTER FOR MOBILE AND WEB #
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: #
import 'package:plugfox_localstorage/localstorage.dart'
Future<void> main() async {
// Create an instance of the object (singleton)
final LocalStorage storage = LocalStorage();
// Wait for initialization
await storage.init();
// Set key
storage['sampleKey'] = 'sampleValue';
// Get value
print(storage['sampleKey']); // 'sampleKey'
// (optional) Close the storage - not necessary
await storage.close();
}