localstorage_light 1.0.1 copy "localstorage_light: ^1.0.1" to clipboard
localstorage_light: ^1.0.1 copied to clipboard

outdated

Lightweight version of LocalStorage.

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
1
likes
100
points
9
downloads

Publisher

verified publishersoftigent.com

Weekly Downloads

Lightweight version of LocalStorage.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path_provider

More

Packages that depend on localstorage_light