ModelInstallation class
Represents a successfully installed model
Created after successful installation via ModelInstallationBuilder. Can be used to load the model for inference or embedding tasks.
Usage:
final installation = await FlutterGemma.installModel()
.fromNetwork('https://example.com/model.bin')
.install();
// Later: load for inference (Phase 5 - not yet implemented)
// final model = await installation.loadForInference();
Constructors
- ModelInstallation.new({required ModelSource source})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelId → String
-
Gets model ID (filename)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → ModelSource
-
final
Methods
-
loadForEmbedding(
) → Future< void> - Load model for embedding tasks (vector generation)
-
loadForInference(
) → Future< void> - Load model for inference tasks (text generation, chat, etc.)
-
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