SecureStorageClient<T extends SecureStorageSettings> class
abstract
Domain-level abstraction for secure key-value storage.
This is intended for secrets such as:
- auth tokens
- encryption keys
- credentials
NOT for general application data.
- Inheritance
-
- Object
- LittleFishService
- SecureStorageClient
Constructors
Properties
- core ↔ LittleFishCore
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → LoggerService
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings ↔ T
-
getter/setter pair
Methods
-
delete(
{required String key}) → Future< void> -
Deletes the value associated with the given
key. -
deleteAll(
) → Future< void> - Deletes all stored key-value pairs.
-
dispose(
) → Future< void> - Optional cleanup hook.
-
initialize(
{required T settings}) → Future< void> - Initialize with validated settings
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
{required String key}) → Future< String?> -
Reads the value associated with the given
key. -
readJson(
String key) → Future< Map< String, dynamic> ?> -
Reads a JSON value associated with the given
key. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
{required String key, required String value}) → Future< void> -
Writes a
valueassociated with the givenkey. -
writeJson(
String key, Map< String, dynamic> value) → Future<void> -
Writes a JSON
valueassociated with the givenkey.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited