InMemoryTemplateStore class

In-memory template store. Data is lost when the app restarts.

Useful for testing or transient sessions.

Implemented types

Constructors

InMemoryTemplateStore()

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