OnDeviceTranslator class

Creating an instance of OnDeviceTranslator

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

close() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translateText(String text) Future<String>

Operators

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