Abstraction over platform-specific secure key storage.
Implement this interface to swap in any key-storage backend:
- Production: use
FlutterSecureKeyStore(iOS Keychain / Android Keystore) fromsuper_cache_secure_flutter.dart. - Testing: use a simple in-memory implementation.
- Implementers
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
-
delete(
String key) → Future< void> -
Deletes the value stored under
key. No-op if the key is absent. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< String?> -
Returns the value stored under
key, ornullif the key is absent. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → Future< void> -
Stores
valueunderkey, overwriting any existing value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited