ModelManager class

Used for viewing downloaded language models, deleting a downloaded language model, and downloading new language models.

A model manager is created via modelManager() in FirebaseLanguage:


final ModelManager modelManager =
    FirebaseLanguage.instance.modelManager();

final List<String> = await modelManager.viewModels();

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

deleteModel(String toDelete) Future<String>
Deletes specified model.
downloadModel(String toDownload) Future<String>
Downloads specified model
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
viewModels() Future<List<String>>
Shows all locally available models.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited