ModelRepository class abstract interface

Abstraction for model metadata persistence Stores information about installed models (NOT the model files themselves)

Platform implementations:

  • SharedPreferencesModelRepository: uses SharedPreferences
  • SQLiteModelRepository: uses SQLite database
  • InMemoryModelRepository: for testing
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

deleteModel(String id) Future<void>
Deletes model metadata
isInstalled(String id) Future<bool>
Checks if a model is installed by ID
listInstalled() Future<List<ModelInfo>>
Lists all installed models
loadModel(String id) Future<ModelInfo?>
Loads model metadata by ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveModel(ModelInfo info) Future<void>
Saves model metadata after successful installation
toString() String
A string representation of this object.
inherited

Operators

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