mobile/flutter_gemma_mobile
library
Classes
-
DownloadProgress
-
Progress information for model downloads
-
EmbeddingModelFile
-
Model file for embedding models (.bin files)
-
EmbeddingModelSpec
-
Specification for embedding models (model.bin + tokenizer.json)
-
EmbeddingTokenizerFile
-
Tokenizer file for embedding models (.json files)
-
FlutterGemmaMobile
-
-
InferenceModelFile
-
Model file for inference models (.bin, .task files)
-
InferenceModelSpec
-
Specification for inference models (main model + optional LoRA)
-
LoraModelFile
-
Model file for LoRA weights. A COMPANION of the inference model — its
filename gets the modelId__ prefix so a LoRA adapter travels with the
exact base model it was fine-tuned for (mirrors the tokenizer/aux
namespacing used by embedding/STT/TTS companions).
-
MobileModelManager
-
Main unified model manager that orchestrates all model operations
-
ModelFile
-
Represents a single file that belongs to a model
-
ModelFileSystemManager
-
Unified file system operations for model management (Mobile only)
-
ModelSpec
-
Base specification for any model (inference or embedding)
-
OrphanedFileInfo
-
Information about a potentially orphaned file
-
ResumeChecker
-
Smart resume detection utility
-
ResumeRecommendation
-
Resume recommendation for a specific file
-
StorageStats
-
Storage statistics
-
SttModelFile
-
Model file for STT models (.tflite files)
-
SttModelSpec
-
Specification for STT models (model.tflite + tokenizer.json).
-
SttTokenizerFile
-
Tokenizer file for STT models (tokenizer.json)
-
TtsBundleFile
-
One file of a TTS model bundle. filename is namespaced by the owning
TtsModelType (every bundle member — including the
.tflite graphs —
since a TTS bundle has no single distinguished "model" file the way
Inference/Embedding/STT specs do). prefsKey stays the PLAIN manifest
basename — NOT the namespaced filename — because
flutter_gemma_speech's TtsModelProfile (e.g. configFile = 'config.json') and TtsCore/MatchaTextFrontend look bundle paths up
by that plain name (paths[profile.configFile]); decoupling keeps that
cross-package contract intact while the on-disk/repository identity is
namespaced.
-
TtsModelSpec
-
Specification for a TTS model — a SELECTABLE bundle. ttsModelType carries
the model family so one generic backend dispatches to the right runtime
profile; sources is one entry per file in that type's manifest.
Enums
-
ModelManagementType
-
Base enumeration for different model management types
-
ModelReplacePolicy
-
Policy for what happens to a previously-installed model when a new one is
set active. Lives with the spec value types (it's a per-spec install policy);
re-exported from
model_file_manager_interface.dart for backward compat.
-
ResumeAction
-
Recommended action based on resume status
-
ResumeStatus
-
Status of resume possibility for a file
-
SttModelType
-
Speech-to-text model families supported by the pluggable STT backends.
Only moonshine has a shipped
SttModelProfile/pipeline
(flutter_gemma_speech); the others are follow-ons that need a log-mel
frontend.
-
TtsModelType
-
Text-to-speech model families supported by the pluggable TTS backends.
Only matcha has a shipped
TtsModelProfile/pipeline (flutter_gemma_speech);
kokoro/supertonic are documented follow-ons (fail-loud until wired).
Extensions
-
TtsModelTypeManifest
on TtsModelType
-
The filenames a given TTS model needs, installed together as a bundle from
one source. Fail-loud for unwired families.