localstorage_light

Last updated:

0 purchases

localstorage_light Image
localstorage_light Images
Add to Cart

Description:

localstorage light

LocalStorage Light #
Getting Started #
final localStorage = await LocalStorage.init('my_localstore_test');
print(localStorage.getItem('hello')); //null
await localStorage.setItem('hello', 'HELLO');
print(localStorage.getItem('hello')); //HELLO

await localStorage.setItem('world', 'WORLD');
print(localStorage.getItem('world')); //WORLD

await localStorage.removeItem('world');
print(localStorage.getItem('world')); //null

await localStorage.clear();
print(localStorage.getItem('hello')); //null
print(localStorage.getItem('world')); //null
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.