PlatformWebStorage class abstract

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

Inheritance
Implemented types
Annotations
  • @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(), WindowsPlatform(), LinuxPlatform()])

Constructors

PlatformWebStorage(PlatformWebStorageCreationParams params)
Creates a new PlatformWebStorage
factory
PlatformWebStorage.implementation(PlatformWebStorageCreationParams params)
Used by the platform implementation to create a new PlatformWebStorage.
PlatformWebStorage.static()
Creates a new empty PlatformWebStorage to access static methods.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
localStorage PlatformLocalStorage
Represents window.localStorage.
no setter
params PlatformWebStorageCreationParams
The parameters used to initialize the PlatformWebStorage.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionStorage PlatformSessionStorage
Represents window.sessionStorage.
no setter

Methods

dispose() → void
Disposes the web storage.
override
isClassSupported({TargetPlatform? platform}) bool
Check if the current class is supported by the defaultTargetPlatform or a specific platform.
isMethodSupported(PlatformWebStorageMethod method, {TargetPlatform? platform}) bool
Check if the given method is supported by the defaultTargetPlatform or a specific platform.
isPropertySupported(dynamic property, {TargetPlatform? platform}) bool
Check if the given property is supported by the defaultTargetPlatform or a specific platform.
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