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
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)

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.

Exceptions / Errors

ModelDownloadException
Exception thrown when model download fails
ModelException
Base exception for model management operations
ModelStorageException
Exception thrown when model storage operations fail
ModelValidationException
Exception thrown when model file validation fails