surf_storage 0.0.1-dev.5
surf_storage: ^0.0.1-dev.5 copied to clipboard

Flutter Android iOS Linux macOS web Windows

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
110
pub points
41%
popularity

Publisher

surf.ru

Based on LocalStorage data storage wrap, simple json storage.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

flutter, localstorage, surf_lint_rules

More

Packages that depend on surf_storage