UnifiedDownloadEngine class
Unified download engine for all model types
Constructors
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
-
cleanupAllTasksOfType(
ModelManagementType type) → Future< void> - Clean up all tasks and files of a specific type (for model switching)
-
deleteModel(
ModelSpec spec) → Future< void> - Deletes all files for a model specification
-
downloadModel(
ModelSpec spec, {String? token}) → Future< void> - Downloads a model specification without progress tracking
-
downloadModelWithProgress(
ModelSpec spec, {String? token}) → Stream< DownloadProgress> - Downloads a model specification with progress tracking
-
ensureModelReady(
ModelSpec spec) → Future< void> - Ensures a model is ready, applying replace policy
-
isModelInstalled(
ModelSpec spec) → Future< bool> - Checks if a model specification is fully installed and valid
-
performCleanup(
) → Future< void> - Performs cleanup of orphaned files and invalid resume states
Constants
- downloadGroup → const String