Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
index.html
localstorage.dart

README.md

LocalStorage 101

A basic example showing the use of LocalStorage for persistence.

LocalStorage is a simple key/value storage interface for Strings. Though widely supported, LocalStorage is a synchronous API. Because it involves I/O, this interface should not be used for high throughput operations. Consider IndexedDB as an alternative. For simple string keys and values, and as a replacement for cookies, LocalStorage is useful.

When you enter a value in the username input in the example, it is stored in LocalStorage. The value is then retrieved from LocalStorage and displayed on the page.

Please report any bugs or feature requests.

You can’t perform that action at this time.