TranslatorUtils class
Constructors
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
-
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
Static Properties
- box ↔ Box?
-
getter/setter pair
- isInitialized → bool
-
no setter
- showTranslationDialog ↔ bool
-
getter/setter pair
Static Methods
-
closeDb(
) → Future< void> -
deleteLanguage(
TranslationLanguage? language) → Future< bool> -
initDb(
) → Future< void> -
initLanguageModels(
TranslationLanguage sourceLanguage, TranslationLanguage targetLanguage) → Future< bool> -
initTranslation<
T extends MlTranslation> (T translation) → (T, TranslationLanguage?) -
isCurrentLanguage(
TranslationLanguage targetLanguage) → bool -
saveTranslation<
T extends MlTranslation> (T translation) → void -
setDialogShown(
) → void -
toTranslateLanguage(
TranslationLanguage translationLanguage) → TranslateLanguage -
translate(
String string) → Future< String> -
translateForWidget(
String string) → Future< String>
Constants
- kAutoDetectionDialog → const String
- kMlTranslator → const String
- kSource → const String
- kSourceLanguage → const String
- kTarget → const String
- kTargetLanguage → const String