ArgosTranslate class
A class that provides offline translation capabilities using the Argos Translate library.
This class serves as the main interface for translating text between different languages using the Argos Translate library. It handles initialization, translation, and package installation for language pairs.
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 Methods
-
findDllPath(
) → Future< String> - Finds the DLL in the current directory or its subdirectories
-
initialize(
String libraryPath) → void - Initializes the Argos Translate library with the specified DLL path.
-
installPackage(
String fromCode, String toCode) → Future< void> - Installs a language package for translation between two languages.
-
translate(
String text, String fromCode, String toCode) → String - Translates text from one language to another.