Storage class

The interface of the Web Storage API provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. To manipulate, for instance, the session storage for a domain, a call to Window.sessionStorage is made; whereas for local storage the call is made to Window.localStorage.

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

Storage()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int

Available on Storage, provided by the PropsStorage extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void

Available on Storage, provided by the PropsStorage extension

getItem(String key) → String?

Available on Storage, provided by the PropsStorage extension

key(int index) → String?

Available on Storage, provided by the PropsStorage extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeItem(String key) → void

Available on Storage, provided by the PropsStorage extension

setItem(String key, String value) → void

Available on Storage, provided by the PropsStorage extension

toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited