InMemorySecureStorage class
Pure-Dart default backend (test/dev): an in-memory map with an optional corruption seam.
- Implemented types
Constructors
Properties
-
corruptKeys
→ Set<
String> -
Keys whose stored bytes are "corrupt" (simulate a damaged store);
reading them throws SecureStorageException.corrupt.
final
- 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 entry.
override
-
contains(
String key) → Future< bool> -
Whether
keyexists.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< Map< String, dynamic> ?> -
Reads the value under
key, ornullwhen absent. A corrupt entry is a typed SecureStorageException.corrupt (recoverable).override -
remove(
String key) → Future< bool> -
Removes
key; returns whether an entry was removed.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, Map< String, dynamic> value) → Future<void> -
Writes
valueunderkey(overwrites; atomic).override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited