SyniInstaller class
Downloads + verifies a model (GGUF + its tokenizer.json sibling). Emits
progress via the supplied callback. Returns the final on-disk model path.
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
-
ensureModel(
SyniModelSpec spec, {required void onProgress(SyniInstallStage, double)}) → Future< String> -
Returns the path to the model file. Downloads the GGUF and its sibling
tokenizer.jsonif not already on disk. CallsonProgresswith the bytes-downloaded fraction. -
isModelOnDisk(
SyniModelSpec spec) → Future< bool> -
Whether the GGUF model + its sibling
tokenizer.jsonare already on disk for the given spec. Used by the cold-start restore path so the screen can skip the download UX when nothing actually needs downloading. -
modelPathFor(
SyniModelSpec spec) → Future< String> - Returns the on-disk path the GGUF would live at — does NOT touch the filesystem. Pair with isModelOnDisk to drive a "load only, skip download" flow.
-
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