InMemoryChataptorStorage class
Default non-persistent ChataptorStorage used by the pure-Dart core.
Flutter apps replace this with a SharedPreferences-backed adapter at
Chataptor.init time.
- Implemented types
Constructors
- InMemoryChataptorStorage()
- Creates a new InMemoryChataptorStorage with an empty data map.
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(
) → Future< void> -
Removes every key-value pair.
override
-
delete(
String key) → Future< void> -
Removes
keyfrom storage. No-op if absent.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readString(
String key) → Future< String?> -
Returns the value for
keyornullif the key is absent.override -
toString(
) → String -
A string representation of this object.
inherited
-
writeString(
String key, String value) → Future< void> -
Stores
valueunderkey, overwriting any existing value.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited