ModelPreferencesManager class

Unified SharedPreferences operations for model management

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clearModelFiles(ModelSpec spec) Future<void>
Removes all files of a model specification from SharedPreferences
getAllProtectedFiles() Future<List<String>>
Gets all protected files from multi-model lists
getExternalPath(String filename) Future<String?>
Gets the external path for a filename if it exists
getInstalledFiles(ModelManagementType type) Future<List<String>>
Gets all installed files for a specific model type
getInstalledModels(ModelManagementType type) Future<List<String>>
Gets all installed model files for a specific type
isAnyModelInstalled(ModelManagementType type) Future<bool>
Checks if ANY model of the given type is installed
isModelInstalled(ModelSpec spec) Future<bool>
Checks if a specific model specification is currently installed
loadModelSpec(ModelManagementType type, String expectedName) Future<ModelSpec?>
Loads a model specification from SharedPreferences if it exists
registerExternalFile(String filename, String externalPath, ModelManagementType type) Future<void>
Registers an external file without copying - just records the path
removeModelFromLists(ModelSpec spec) Future<void>
Removes a specific model from the lists
saveModelFiles(ModelSpec spec) Future<void>
Saves model files using new multi-model list system