WebStorage class

Class that provides access to the JavaScript Web Storage API: window.sessionStorage and window.localStorage. It used by PlatformInAppWebViewController.webStorage.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Web
  • Windows

Constructors

WebStorage({required PlatformLocalStorage localStorage, required PlatformSessionStorage sessionStorage})
Class that provides access to the JavaScript Web Storage API: window.sessionStorage and window.localStorage. It used by PlatformInAppWebViewController.webStorage.
WebStorage.fromPlatform({required PlatformWebStorage platform})
Constructs a WebStorage from a specific platform implementation.
WebStorage.fromPlatformCreationParams({required PlatformWebStorageCreationParams params})
Constructs a WebStorage.

Properties

hashCode int
The hash code for this object.
no setterinherited
localStorage LocalStorage
Represents window.localStorage.
no setter
platform PlatformWebStorage
Implementation of PlatformWebStorage for the current platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionStorage SessionStorage
Represents window.sessionStorage.
no setter

Methods

dispose() → void
Disposes the web storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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