CodeMeltedStorage class
Provides the ability to manage a key / value pair within the web environment.
See https://developer.mozilla.org/en-US/docs/Web/API/Storage See https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies
Constructors
- CodeMeltedStorage()
-
Sets up the internal instance for this object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
{CStorageMethod method = CStorageMethod.local}) → void - Clears all data from the identified CStorageMethod.
-
getItem(
{CStorageMethod method = CStorageMethod.local, required String key}) → String? - Gets data from the identified CStorageMethod via the specified key.
-
key(
{CStorageMethod method = CStorageMethod.local, required int index}) → String? - Gets the key from the index from the identified CStorageMethod.
-
length(
{CStorageMethod method = CStorageMethod.local}) → int - Total items stored in the identified CStorageMethod.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeItem(
{CStorageMethod method = CStorageMethod.local, required String key}) → void - Removes an item by key from the identified CStorageMethod.
-
setItem(
{CStorageMethod method = CStorageMethod.local, required String key, required String value}) → void - Sets an item by key within the identified CStorageMethod.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited