SecureTemplateStore class

Encrypted face template store backed by FlutterSecureStorage.

Persists FaceTemplate objects across app restarts using the platform keychain (iOS) or EncryptedSharedPreferences (Android).

Each template is stored as a JSON string under a namespaced key (face_tpl_<id>). A separate index key tracks all stored template IDs.

final store = SecureTemplateStore();
await store.save(template);
final all = await store.getAll();
Implemented types

Constructors

SecureTemplateStore({FlutterSecureStorage? storage})
Creates a SecureTemplateStore.

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>
Delete all stored templates.
override
delete(String id) Future<void>
Delete a template by id.
override
get(String id) Future<FaceTemplate?>
Retrieve a template by id, or null if not found.
override
getAll() Future<List<FaceTemplate>>
Retrieve all stored templates.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(FaceTemplate template) Future<void>
Save or update a template.
override
toString() String
A string representation of this object.
inherited

Operators

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