LanguageModelManager class

Class that manages the language models that are required to process the image. Creating an instance of LanguageModelManager.

LanguageModelManager _languageModelManager = GoogleMlKit.instance.languageModelManager();

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteModel(String modelTag) Future<String>
Delete the model of the language specified in the argument. If model has not been previously downloaded it returns 'not exists'. Else returns success or failure depending on whether the deletion completes or not.
downloadModel(String modelTag) Future<String>
Downloads the model required to process the specified language. If model has been previously downloaded it returns 'exists'. Else returns success or failure depending on whether the download completes or not. To see available models visit https://developers.google.com/ml-kit/vision/digital-ink-recognition/base-models
isModelDownloaded(String modelTag) Future<bool>
Check if a particular model is downloaded.Takes the language tag as input.The language should be according to the BCP-47 guidelines.
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