plugfox_localstorage 0.1.1 copy "plugfox_localstorage: ^0.1.1" to clipboard
plugfox_localstorage: ^0.1.1 copied to clipboard

discontinued
outdated

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();
}
Flutter logo
0
likes
40
pub points
0%
popularity

Publisher

verified publisherarchive.plugfox.dev

Simple cross-platform universal String Key-Value local storage, works on mobile and the web. Has RAM caching. Great for small short values.

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on plugfox_localstorage