LanguageTranslator class

Used for finding TranslatedTextLabels in supplied text.

A language translator is created via languageTranslator(fromLanguage: SupportedLanguages.lang, toLanguage: SupportedLanguages.lang) in FirebaseLanguage:


final LanguageTranslator languageTranslator =
    FirebaseLanguage.instance.languageTranslator(fromLanguage: SupportedLanguages.lang, toLanguage: SupportedLanguages.lang);

final List<TranslatedTextLabel> labels = await languageTranslator.processText("Sample Text");

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
processText(String text) Future<String>
Translates the input text.
toString() String
A string representation of this object. [...]
inherited

Operators

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