DeeplTranslateHandler class
DeeplTranslateHandler is a handler for translating text using the DeepL API.
- Inheritance
-
- Object
- BaseTranslateHandler
- DeeplTranslateHandler
Constructors
- DeeplTranslateHandler({required String apiKey})
-
Creates a new instance of DeeplTranslateHandler.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedLanguages
→ List<
String> -
A list of supported languages for this handler.
no setteroverride
Methods
-
canHandle(
TranslateRequest request) → bool -
Whether this handler can handle the given
request
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
TranslateRequest request) → Future< TranslateResponse> -
Translates the given
request
text fromrequest.from
language torequest.to
language.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited