surf_storage 0.0.1-dev.4 copy "surf_storage: ^0.0.1-dev.4" to clipboard
surf_storage: ^0.0.1-dev.4 copied to clipboard

discontinued
outdated

Based on LocalStorage data storage wrap, simple json storage.

SurfGear

surf_storage #

Data storage wrap. Based on LocalStorage data storage wrap, simple json storage.

Discription #

Main class:

  1. JsonStorage

Usage

key is used as a filename

Storage storage = JsonStorage(key);

Saves object by key to a storage. value should be json encodable.(json.encode() is called under the hood).

    storage.put(key, value);

Removes object from storage by key

    storage.remove(key);

Get object or null if it doesn't exist

storage.get(key);

Removes all object from localstorage

storage.clean();
4
likes
0
pub points
0%
popularity

Publisher

verified publishersurf.ru

Based on LocalStorage data storage wrap, simple json storage.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, localstorage, surf_lint_rules

More

Packages that depend on surf_storage