LocalLlmCleanupService class

One-time migration that reclaims the disk space (and reverts the stored provider selection) for users who downloaded local GGUF weights before the Local LLM feature was hidden behind EnvConfig.enableLocalLlm.

Runs at app startup. No-op when the feature is enabled OR when the versioned done-flag is already stamped. The flag is bumped only after a successful directory delete, so a crash or transient IO error replays the cleanup on the next launch (idempotent).

Constructors

LocalLlmCleanupService()
const

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
run(FlutterSecureStorage storage) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

doneKey → const String
Versioned key so a future cleanup pass (different weights, different keys) can run again without colliding with this one.