EntityModelManager class
Creating instance of EntityModelManager
final _onDeviceTranslator = GoogleMlKit.nlp
.onDeviceTranslator(sourceLanguage: TranslateLanguage.ENGLISH,
targetLanguage: TranslateLanguage.SPANISH);
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> -
Deletes a model.
Returns
success
if model is delted successfully or model is not present. -
downloadModel(
String modelTag, {bool isWifiRequired = true}) → Future< String> -
Downloads a model.
Returns
success
if model downloads succesfully or model is already downloaded. On failing to dowload it throws an error. -
getAvailableModels(
) → Future< List< String> > -
Returns a list of all downloaded models.
These are
BCP-47
tags. -
isModelDownloaded(
String modelTag) → Future< bool> - Checks whether a model is downloaded or not.
-
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