PlatformLocalStorageMethod enum

List of PlatformLocalStorage's methods that can be used to check if they are supported or not by the current platform.

Inheritance
Available extensions

Values

clear → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.clear method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

dispose → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.dispose method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

getItem → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.getItem method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

  • key: all platforms

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

getItems → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.getItems method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

key → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.key method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

length → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.length method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

removeItem → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.removeItem method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

  • key: all platforms

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

setItem → const PlatformLocalStorageMethod

Can be used to check if the PlatformLocalStorage.setItem method is supported at runtime.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

  • key: all platforms
  • value: all platforms

Use the PlatformLocalStorage.isMethodSupported method to check if this method is supported at runtime.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<PlatformLocalStorageMethod>
A constant List of the values in this enum, in order of their declaration.