installModel static method

  1. @Deprecated('Use installInferenceModel() or installEmbeddingModel() for type-safe API')
ModelInstallationBuilder installModel()

Start building a model installation (deprecated)

Use installInferenceModel or installEmbeddingModel instead for type-safe API.

Example:

await FlutterGemma.installModel()
  .fromNetwork('https://example.com/model.bin')
  .withProgress((p) => print(p))
  .install();

Implementation

@Deprecated('Use installInferenceModel() or installEmbeddingModel() for type-safe API')
static ModelInstallationBuilder installModel() {
  return ModelInstallationBuilder();
}