PVCtxStorageProxy class

Storage abstraction for entries and metadata.

Routes operations to backends: stdSembast (persistent), inMemory (session), secureStorage (keychain).

Used internally via PVCtx.entry and PVCtx.meta.

Constructors

PVCtxStorageProxy({required PVCtx ctx, required StorageType storageType, required bool isMetadata})
Create a storage proxy.

Properties

ctx PVCtx
The context this proxy belongs to.
final
hashCode int
The hash code for this object.
no setterinherited
isMetadata bool
Whether this proxy is for metadata (true) or entries (false).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageType StorageType
Storage backend type (stdSembast, inMemory, or secureStorage).
final

Methods

clear() Future<void>
Clear all values from storage.
delete(String key) Future<void>
Delete a value from storage.
get(String key) Future<Map<String, dynamic>?>
Retrieve a value from storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, Map<String, dynamic> value) Future<void>
Store a value in storage.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited