AndroidSessionStorage class
Class that provides methods to manage the JavaScript window.sessionStorage
object.
It used by PlatformWebStorage
.
- Inheritance
-
- Object
- PlatformInterface
- AndroidSessionStorage
- Mixed-in types
Constructors
- AndroidSessionStorage.new(PlatformSessionStorageCreationParams params)
- Constructs a AndroidSessionStorage.
- AndroidSessionStorage.defaultStorage({required PlatformInAppWebViewController? controller})
-
Default storage
factory
Properties
- controller ↔ AndroidInAppWebViewController?
-
Controller used to interact with storage.
getter/setter pairinherited-setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- params → PlatformSessionStorageCreationParams
-
The parameters used to initialize the
PlatformSessionStorage
.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- webStorageType → WebStorageType
-
The web storage type:
window.sessionStorage
orwindow.localStorage
.no setterinherited
Methods
-
clear(
) → Future< void> -
Clears all keys stored in a given Storage object.
inherited
-
dispose(
) → void -
inherited
-
getItem(
{required String key}) → Future -
When passed a
key
name, will return that key's value, ornull
if the key does not exist, in the given Storage object.inherited -
getItems(
) → Future< List< WebStorageItem> > -
Returns the list of all items from the given Storage object.
inherited
-
key(
{required int index}) → Future< String> -
When passed a number
index
, returns the name of the nth key in a given Storage object. The order of keys is user-agent defined, so you should not rely on it.inherited -
length(
) → Future< int?> -
Returns an integer representing the number of data items stored in the Storage object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeItem(
{required String key}) → Future< void> -
When passed a
key
name, will remove that key from the given Storage object if it exists.inherited -
setItem(
{required String key, required dynamic value}) → Future< void> -
When passed a
key
name andvalue
, will add that key to the storage, or update that key's value if it already exists.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited